Last active
February 11, 2020 08:38
-
-
Save n01r/c7c014fc652cab38c9c5bb49f53d8393 to your computer and use it in GitHub Desktop.
Better way to check out a pull request from GitHub
This file contains hidden or 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
| #!/bin/bash | |
| cd <local/github/repository> | |
| # here mainline is the alias for the main repository | |
| git fetch mainline pull/<PR no.>/head:<new-branch-name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment