TeamWork
Assume :
1,register in github
2,configured ssh.
Process
1,fork/clone the team repository,
fork your team repository to your github
git clone git@github.com:Song2017/PHP.git
2,entry local work repository folder
cd PHP
3,create branch and chose
git branch dev
git checkout dev
-- equal to 'git checkout -b dev origin/dev'
git branch --confirm it
if it works,you will see :
* dev
master
4,do your work
5,push local repository to the team repository
git add . -- by '.', automate add all file :create,modify,delete
git commit -m "your comment"
git push origin dev --push with your worked branch
when conflicts occur,pull and handle it manually
6,works in your github
when no conflicts, create New pull request,
after that, team repository manager will Merge you work.
7,cancle you local branch
git branch -d dev --branch name,-D will delete forcely
中文请看:
http://blog.youkuaiyun.com/sgs595595/article/details/54913666
Git with TeamWork
最新推荐文章于 2025-01-14 21:28:43 发布