Advertisement
Guest User

Untitled

a guest
Aug 11th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. chipzz@dev560:~/myproject (timeout_cleanup)$ git rev-parse HEAD
  2. 7a3c183f55e4eed31c0a1d4a819e4dc75f9abde0
  3. chipzz@dev560:~/myproject (timeout_cleanup)$ git checkout master
  4. Switched to branch 'master'
  5. chipzz@dev560:~/myproject (master)$ git checkout 7a3c183f55e4eed31c0a1d4a819e4dc75f9abde0
  6. Note: checking out '7a3c183f55e4eed31c0a1d4a819e4dc75f9abde0'.
  7.  
  8. You are in 'detached HEAD' state. You can look around, make experimental
  9. changes and commit them, and you can discard any commits you make in this
  10. state without impacting any branches by performing another checkout.
  11.  
  12. If you want to create a new branch to retain commits you create, you may
  13. do so (now or later) by using -b with the checkout command again. Example:
  14.  
  15. git checkout -b new_branch_name
  16.  
  17. HEAD is now at 7a3c183... CommitMessage
  18. chipzz@dev560:~/myproject ((7a3c183...))$ git log | head -n1
  19. 7a3c183f55e4eed31c0a1d4a819e4dc75f9abde0 (HEAD, timeout_cleanup) CommitMessage
  20. chipzz@dev560:~/myproject ((7a3c183...))$ git rev-parse --symbolic
  21. chipzz@dev560:~/myproject ((7a3c183...))$ git checkout timeout_cleanup
  22. Switched to branch 'timeout_cleanup'
  23. chipzz@dev560:~/myproject (timeout_cleanup)$ git log | head -n1
  24. 7a3c183f55e4eed31c0a1d4a819e4dc75f9abde0 (HEAD, timeout_cleanup) CommitMessage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement