Skip to content

Instantly share code, notes, and snippets.

@EstebanBorai
Created June 19, 2021 18:59
Show Gist options
  • Save EstebanBorai/c20b24cc5055acc3827627f7706be673 to your computer and use it in GitHub Desktop.
Save EstebanBorai/c20b24cc5055acc3827627f7706be673 to your computer and use it in GitHub Desktop.
GitHub PR: Push & pull from contributor upstream

GitHub PR: Push & pull from contributor upstream

Push to PR

# git push git@github.com:<username>/<repository>.git <upstream-branch>:<local-branch>

git push git@github.com:EstebanBorai/repository-name.git fix-documentation:fix-typo-in-documentation

Pull from PR

# git fetch <remote name> pull/<pr number>/head:<pr branch name>

git fetch upstream pull/1/head:fix-documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment