Created
May 23, 2013 14:28
-
-
Save krames/5636487 to your computer and use it in GitHub Desktop.
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
1.9.3:knife-rackspace [master]$ git config --add remote.upstream.fetch "+refs/pull/*/head:refs/remotes/upstream/pr/*" | |
1.9.3:knife-rackspace [master]$ git fetch upstream | |
remote: Counting objects: 481, done. | |
remote: Compressing objects: 100% (223/223), done. | |
remote: Total 393 (delta 191), reused 309 (delta 113) | |
Receiving objects: 100% (393/393), 45.29 KiB, done. | |
Resolving deltas: 100% (191/191), completed with 20 local objects. | |
From https://github.com/opscode/knife-rackspace | |
* [new ref] refs/pull/0/head -> upstream/pr/0 | |
* [new ref] refs/pull/1/head -> upstream/pr/1 | |
* [new ref] refs/pull/10/head -> upstream/pr/10 | |
* [new ref] refs/pull/11/head -> upstream/pr/11 | |
* [new ref] refs/pull/12/head -> upstream/pr/12 | |
* [new ref] refs/pull/13/head -> upstream/pr/13 | |
* [new ref] refs/pull/14/head -> upstream/pr/14 | |
* [new ref] refs/pull/15/head -> upstream/pr/15 | |
* [new ref] refs/pull/16/head -> upstream/pr/16 | |
* [new ref] refs/pull/17/head -> upstream/pr/17 | |
* [new ref] refs/pull/18/head -> upstream/pr/18 | |
* [new ref] refs/pull/19/head -> upstream/pr/19 | |
* [new ref] refs/pull/2/head -> upstream/pr/2 | |
* [new ref] refs/pull/20/head -> upstream/pr/20 | |
* [new ref] refs/pull/21/head -> upstream/pr/21 | |
* [new ref] refs/pull/22/head -> upstream/pr/22 | |
* [new ref] refs/pull/23/head -> upstream/pr/23 | |
* [new ref] refs/pull/24/head -> upstream/pr/24 | |
* [new ref] refs/pull/25/head -> upstream/pr/25 | |
* [new ref] refs/pull/26/head -> upstream/pr/26 | |
* [new ref] refs/pull/27/head -> upstream/pr/27 | |
* [new ref] refs/pull/28/head -> upstream/pr/28 | |
* [new ref] refs/pull/29/head -> upstream/pr/29 | |
* [new ref] refs/pull/3/head -> upstream/pr/3 | |
* [new ref] refs/pull/30/head -> upstream/pr/30 | |
* [new ref] refs/pull/31/head -> upstream/pr/31 | |
* [new ref] refs/pull/32/head -> upstream/pr/32 | |
* [new ref] refs/pull/33/head -> upstream/pr/33 | |
* [new ref] refs/pull/34/head -> upstream/pr/34 | |
* [new ref] refs/pull/35/head -> upstream/pr/35 | |
* [new ref] refs/pull/36/head -> upstream/pr/36 | |
* [new ref] refs/pull/37/head -> upstream/pr/37 | |
* [new ref] refs/pull/38/head -> upstream/pr/38 | |
* [new ref] refs/pull/39/head -> upstream/pr/39 | |
* [new ref] refs/pull/40/head -> upstream/pr/40 | |
* [new ref] refs/pull/41/head -> upstream/pr/41 | |
* [new ref] refs/pull/42/head -> upstream/pr/42 | |
* [new ref] refs/pull/43/head -> upstream/pr/43 | |
* [new ref] refs/pull/7/head -> upstream/pr/7 | |
* [new ref] refs/pull/8/head -> upstream/pr/8 | |
* [new ref] refs/pull/9/head -> upstream/pr/9 | |
1.9.3:knife-rackspace [master]$ git checkout -b knife-182 upstream/pr/32 | |
Branch knife-182 set up to track remote branch pr/32 from upstream. | |
Switched to a new branch 'knife-182' | |
1.9.3:knife-rackspace [knife-182]$ git log -1 | |
commit b01d638e34f481ccb62aef8efcecec48fb54d79f | |
Author: Matt Ray <[email protected]> | |
Date: Mon Nov 26 14:45:48 2012 -0600 | |
default to 'v2' API, updated logging to show priority |
To pull a specific PR
git fetch upstream pull/2087/head:pr_2087
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got the idea from here
http://aniszczyk.org/2012/10/09/checkout-github-pull-requests-via-cli/