Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chipzz@dev560:~/myproject (timeout_cleanup)$ git rev-parse HEAD
- 7a3c183f55e4eed31c0a1d4a819e4dc75f9abde0
- chipzz@dev560:~/myproject (timeout_cleanup)$ git checkout master
- Switched to branch 'master'
- chipzz@dev560:~/myproject (master)$ git checkout 7a3c183f55e4eed31c0a1d4a819e4dc75f9abde0
- Note: checking out '7a3c183f55e4eed31c0a1d4a819e4dc75f9abde0'.
- 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 7a3c183... CommitMessage
- chipzz@dev560:~/myproject ((7a3c183...))$ git log | head -n1
- 7a3c183f55e4eed31c0a1d4a819e4dc75f9abde0 (HEAD, timeout_cleanup) CommitMessage
- chipzz@dev560:~/myproject ((7a3c183...))$ git rev-parse --symbolic
- chipzz@dev560:~/myproject ((7a3c183...))$ git checkout timeout_cleanup
- Switched to branch 'timeout_cleanup'
- chipzz@dev560:~/myproject (timeout_cleanup)$ git log | head -n1
- 7a3c183f55e4eed31c0a1d4a819e4dc75f9abde0 (HEAD, timeout_cleanup) CommitMessage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement