`
ipython
  • 浏览: 289500 次
  • 性别: Icon_minigender_1
  • 来自: 佛山
社区版块
存档分类
最新评论

github pullrequest 简单流程

阅读更多

git pull request 流程

有远程项目X,先将X fork 到自己的项目A

git clone A

git checkout -b fix_xxx  // 建立新分支来处理问题

git commit -am "xxx"     // 提交

git push origin fix_xxx  // 推送到线上的A, 根据提示在github的页面上发pull request

这时,原来的X会更新,需要将更新拉下来

git remote add upstream https://github.com/X

git remote set-url --push upstream no_push

git remote -v    // 检查, A是fetch和push,  X只是fetch

git checkout master

git fetch upstream

git rebase upstream/master

 

git checkout fix_xxx   

git merge master

git push origin fix_xxx

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics