Skip to content

Instantly share code, notes, and snippets.

@tingletech
Created May 9, 2016 21:02
Show Gist options
  • Save tingletech/d8d264a97d3d12c6ca264e4e734efd9a to your computer and use it in GitHub Desktop.
Save tingletech/d8d264a97d3d12c6ca264e4e734efd9a to your computer and use it in GitHub Desktop.
$ git fetch ucldc master
From https://github.com/ucldc/public_interface
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> ucldc/master
 
$ git checkout remotes/ucldc/master
Note: checking out 'remotes/ucldc/master'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 15acdbb... Merge pull request #55 from tingletech/master

$ git checkout -b custom-facets
Switched to a new branch 'custom-facets'

$ # do some work

$ # commit files

$ git push origin custom-facets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment