Created
August 19, 2018 00:35
-
-
Save seLain/688fab5bef49a94cce4a8e40bfb4fe4c to your computer and use it in GitHub Desktop.
Checkout specific PR and push as new branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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