Guest User

Untitled

a guest
Apr 25th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. Help me I git reset --hard
  2.  
  3. It is possible to recover it if Git hasn't garbage collected yet.
  4.  
  5. Get an overview of dangling commits with fsck:
  6.  
  7. $ git fsck --lost-found
  8. dangling commit b72e67a9bb3f1fc1b64528bcce031af4f0d6fcbf
  9.  
  10. Recover the dangling commit with rebase:
  11.  
  12. $ git rebase b72e67a9bb3f1fc1b64528bcce031af4f0d6fcbf
Add Comment
Please, Sign In to add comment