- 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/orFixes #n
- In commit message (line 3) add
Authors: @integralist
git checkout master
git merge {PR_branch}
orgit cherry-pick {new_rebased_commit}
git branch -D {PR_branch}
git push origin master
Last active
August 29, 2015 14:05
-
-
Save Integralist/43b6da80a91827671e55 to your computer and use it in GitHub Desktop.
Process for rebasing Pull Request
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment