Created
May 6, 2014 21:23
-
-
Save maedhroz/c784b53d349ccdba23eb to your computer and use it in GitHub Desktop.
Apply Pull Request from Private Repo w/ Hub
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
brew install hub | |
...then in ~/.gitconfig... | |
[alias] | |
# public repo | |
cpr = "!f() { curl https://github.com/cqlengine/cqlengine/pull/${1}.patch | git apply -3 - ; }; f " | |
# private repo | |
spr = "!f() { hub apply -3 https://github.com/[your org]/[your project]/pull/${1} ; }; f " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment