Skip to content

Instantly share code, notes, and snippets.

@LeoBorai
Created June 19, 2021 18:59
Show Gist options
  • Select an option

  • Save LeoBorai/c20b24cc5055acc3827627f7706be673 to your computer and use it in GitHub Desktop.

Select an option

Save LeoBorai/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 [email protected]:<username>/<repository>.git <upstream-branch>:<local-branch>

git push [email protected]: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