Updating an existing Github pull request
Akka uses single commits for its pull requests, so that changes can be easily understood and rolled back. Pull requests are contained in their own branch. Here’s how I updated my single-commit pull request with some changes and resubmitted it.
Rebase the last two commits interactively.
git rebase -i HEAD~2When asked, squash the latest commit into the previous one.
Replace the existing
upstreambranch with the updated one. Use+to signify that the updated branch isn’t based on the old one. (Oftenoriginis used instead ofupstream.)git push upstream +wip-2798-ensuring-rich