soonfy / issue-blog

blog using issue
0 stars 0 forks source link

github pull-request(PR) #23

Open soonfy opened 6 years ago

soonfy commented 6 years ago

PR

  1. fork 开源项目

  2. clone 个人项目到本地

  3. git remote -v 查看项目远程连接

  4. git remote add upstream <开源项目地址>

  5. git checkout -b <新分支>

  6. git status/stage/commit/push

  7. 提交 PR

New pull request
Create pull request

参考文章

git学习--GitHub上如何进行PR(Pull Request)操作 github----向开源框架提交pr的过程

soonfy

soonfy commented 6 years ago

更新 fork 项目

  1. git remote -v 查看项目远程连接

  2. git pull upstream master

soonfy

soonfy commented 5 years ago

PR

  1. git pull upstream master 保持 master 分支最新

  2. git checkout -b dev-sf upstream/master 在 dev-sf 分支开发

  3. git push origin dev-sf 推送到 origin/dev-sf

  4. git checkout -b merge-pr origin/master 新建 merge-pr 分支

  5. git merge dev-sf merge-pr --squash 在 merge-pr 分支合并

  6. git commit, git push

soonfy