Skip to content

Instantly share code, notes, and snippets.

@seLain
Created August 19, 2018 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seLain/688fab5bef49a94cce4a8e40bfb4fe4c to your computer and use it in GitHub Desktop.
Save seLain/688fab5bef49a94cce4a8e40bfb4fe4c to your computer and use it in GitHub Desktop.
Checkout specific PR and push as new branch
https://help.github.com/articles/checking-out-pull-requests-locally/
checkout from origin
git fetch origin pull/ID/head:BRANCHNAME
git checkout BRANCHNAME
<do modifications>
<add>
<commit>
git push origin BRANCHNAME
checkout from upstream, push to origin
git fetch upstream pull/ID/head:BRANCHNAME
git checkout BRANCHNAME
<do modifications>
<add>
<commit>
git push origin BRANCHNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment