Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Edditoria/1579ae6309880cb20ba820606162a954 to your computer and use it in GitHub Desktop.
Save Edditoria/1579ae6309880cb20ba820606162a954 to your computer and use it in GitHub Desktop.
Update a pull request by pushing to another user's forked repository

Add the other user as a remote

#Using https
git remote add otheruser https://github.com/otheruser/yourrepo.git
# Or - Using SSH
git remote add otheruser [email protected]:otheruser/yourrepo.git

Fetch

git fetch otheruser

Create a branch from their repo

git checkout -b otheruser-master otheruser/master 

Push to their repo

git push otheruser HEAD:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment