15分钟学会使用 Git 和远程代码库

来源:互联网 发布:传感器网络的支撑技术 编辑:程序博客网 时间:2024/06/07 09:38

http://www.woiweb.net/github-gitshell-tutorial.html

http://codecloud.net/learn-how-to-use-git-608.html


 正确的做法是,在push之前git fetch origin,将github上的新代码拉下来,然后在本地merge,如果没有冲突就可以push了,如果有冲突的话要在本地解决冲突后,再push。具体做法就是。

git fetch origin

git merge origin/master

git push origin master

http://blog.csdn.net/mci2004/article/details/7763399
0 0