- Keep commits small/atomic
- Make use of fixup commits (for related changes)
git commit --fixup sha - If responding to a request/comment in PR reply with a comment like "Done in
<commit-sha>", then:
git push origin headgit rebase -i origin/master --autosquash- Once there's a nice history:
git push origin head -f git checkout master && git merge br-name --ff-only
- Remember to run your specs again!
- git push origin master
- Delete remote branch
- Delete local branch: git branch -d branch/name