How to commit to someone else’s PR
Scenario: You have a repo and somebody makes a PR, which you want to edit. Source
- (Clone your repo)
- Add the fork as a remote:
git remote add arthurdent git@github.com:arthurdent/the-guide.git
- fetch
git fetch arthurdent
- Check out the source branch of the pr
git checkout -b arthurdent-pr arthurdent/prbranch
git commit -am "Fix how you spelt towel"
git push arthurdent HEAD:prbranch
- profit.