随笔分类 - Git
摘要:(1)本地初始化: git init (2)添加远程仓库: git remote add origin git@IP:relativeDir.git,添加完成后会在本地.git/config文件中看到添加的url,也可以修改这个url (3)拉取远程代码: git pull origin maste
阅读全文
摘要:error:Your local changes to the following files would be overwritten by merge:如果希望保留生产服务器上所做的改动,仅仅并入新配置项:git stashgit pullgit stash pop然后可以使用git diff ...
阅读全文
摘要:$ git checkout work //去自己的工作分支 工作 ....$ //提交工作分支的修改 1.git add .//添加所有修改的文件到提交队列2.git commit –m “test” 填写注释文件3.git push -u origin master //表示提交 $ ...
阅读全文
摘要:1.使用cd: e 这里假设进入将要push代码的磁盘2.进入地址类似 git/ 这里使用tab键可以填充地址3.git init4.git add .//添加当前目录下的所有文件5.git commit –m “test” 填写注释文件6.it remote add origin https://...
阅读全文

浙公网安备 33010602011771号