Created
January 7, 2014 02:53
-
-
Save hub-cap/8293985 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
baz@dev-entrypoints:/tmp/trove$ git status | |
# On branch master | |
# Changes not staged for commit: | |
# (use "git add <file>..." to update what will be committed) | |
# (use "git checkout -- <file>..." to discard changes in working directory) | |
# | |
# modified: README.rst | |
# | |
no changes added to commit (use "git add" and/or "git commit -a") | |
baz@dev-entrypoints:/tmp/trove$ git branch | |
* master | |
baz@dev-entrypoints:/tmp/trove$ git fetch origin master | |
From https://github.com/openstack/trove | |
* branch master -> FETCH_HEAD | |
baz@dev-entrypoints:/tmp/trove$ git checkout FETCH_HEAD | |
M README.rst | |
Note: checking out 'FETCH_HEAD'. | |
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 1291207... Merge "make the bin scripts called with main()" | |
baz@dev-entrypoints:/tmp/trove$ git status | |
# Not currently on any branch. | |
# Changes not staged for commit: | |
# (use "git add <file>..." to update what will be committed) | |
# (use "git checkout -- <file>..." to discard changes in working directory) | |
# | |
# modified: README.rst | |
# | |
no changes added to commit (use "git add" and/or "git commit -a") | |
baz@dev-entrypoints:/tmp/trove$ git branch | |
* (no branch) | |
master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment