How do I work with git?
This question already has an answer here:
To pull the changes from the remote master
branch and merge it into your local master
:
git pull origin master
To create a new branch new_feature
:
git checkout -b new_feature
You change branches by checking it out without the -b
flag, eg:
git checkout master
git checkout new_feature
A good tutorial (and in fact an online book) is: Pro Git
i suggest you actually learn to use the software.
there's lots of great free resources out there...
http://git-scm.com/book/
http://gitref.org/
链接地址: http://www.djcxy.com/p/45268.html上一篇: 无法退出现有的分支
下一篇: 我如何使用git?