How to commit to someone else’s PR

Scenario: You have a repo and somebody makes a PR, which you want to edit. Source

  1. (Clone your repo)
  2. Add the fork as a remote: git remote add arthurdent git@github.com:arthurdent/the-guide.git
  3. fetch git fetch arthurdent
  4. Check out the source branch of the pr git checkout -b arthurdent-pr arthurdent/prbranch
  5. git commit -am "Fix how you spelt towel" git push arthurdent HEAD:prbranch
  6. profit.