Skip to content

Instantly share code, notes, and snippets.

@maedhroz
Created May 6, 2014 21:23
Show Gist options
  • Save maedhroz/c784b53d349ccdba23eb to your computer and use it in GitHub Desktop.
Save maedhroz/c784b53d349ccdba23eb to your computer and use it in GitHub Desktop.
Apply Pull Request from Private Repo w/ Hub
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