Skip to content

Instantly share code, notes, and snippets.

@fj
Created October 19, 2009 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fj/213403 to your computer and use it in GitHub Desktop.
Save fj/213403 to your computer and use it in GitHub Desktop.
[johnf@genesis][2009/10/19|09:54:27]
[/tmp/tmp-dev]> git fetch
[johnf@genesis][2009/10/19|09:54:40]
[/tmp/tmp-dev]> git config --add remote.origin.fetch refs/apple/banana
# ('apple' is a user I collaborate with who's got several branches, one of which is 'banana'.)
[johnf@genesis][2009/10/19|09:55:36]
[/tmp/tmp-dev]> git fetch
From git@67.23.22.87:fruitbasket.git
* branch refs/apple/banana -> FETCH_HEAD
[johnf@genesis][2009/10/19|09:55:40]
[/tmp/tmp-dev]> git branch -r
origin/master
[johnf@genesis][2009/10/19|09:55:52]
[/tmp/tmp-dev]> git remote show origin
* remote origin
URL: git@67.23.22.87:fruitbasket.git
New remote branch (next fetch will store in remotes/origin)
refs/apple/banana
Tracked remote branch
master
[johnf@genesis][2009/10/19|09:56:29]
[/tmp/tmp-dev]> git remote update origin
[johnf@genesis][2009/10/19|10:03:35]
[/tmp/tmp-dev]> git branch -r
origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment