« Back to Index
Process for rebasing Pull Request
View original Gist on GitHub
Process for rebasing Pull Request.md
- On the PR branch
git rebase -i master
(i.e. git rebase -i {parent_commit_of_first_commit_in_PR}
)
- Change top commit (the oldest) to
reword
- Change all other commits to
fixup
- In commit message (line 1) change title to reflect entire PR
- In commit message (line 2) add
Closes #n
and/or Fixes #n
- In commit message (line 3) add
Authors: @integralist
git checkout master
git merge {PR_branch}
or git cherry-pick {new_rebased_commit}
git branch -D {PR_branch}
git push origin master