Git工作流程记录

假设主分支 http://10.1.1.1/group/project (group可以是项目组名称)

开发需要Fork分支到 http://10.1.1.1/staff/project (staff是具体的开发者的账号)

然后设置Upstream到主分支 git remote add upstream http://10.1.1.1/group/project

然后更改后提交PR

对于主分支的合并使用 git fetch upstream && git merge upstream/master

合并具体的提交使用 git cherry-pick #commit_id#

猜你喜欢

转载自my.oschina.net/u/1261643/blog/1627152