Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. $ git show-ref --tags | grep my_timestamp_tag
  2. nonexistent_commit_hash refs/tags/my_timestamp_tag
  3.  
  4. $ git log | grep nonexistent_commit_hash
  5. $
  6.  
  7. $ git reflog | grep nonexistent_commit_hash
  8. $
  9.  
  10. $ git checkout nonexistent_commit_hash
  11. Note: checking out 'nonexistent_commit_hash'.
  12.  
  13. You are in 'detached HEAD' state.
  14. ...
  15. HEAD is now at hash_for_the_actual_commit... message_for_the_actual_commit
  16.  
  17. $ git checkout my_timestamp_tag
  18. Note: checking out 'my_timestamp_tag'.
  19.  
  20. You are in 'detached HEAD' state.
  21. ...
  22. HEAD is now at hash_for_the_actual_commit... message_for_the_actual_commit
  23.  
  24. $ git show my_timestamp_tag`
  25. tag PXEPLAT_20150303_162652
  26. ...
  27. message_for_my_timestamp_tag
  28.  
  29. commit hash_for_the_actual_commit
  30. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement