Advertisement
Hienhm2212

Restore stash if deleted

Nov 14th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.12 KB | None | 0 0
  1. gitk --all $( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )
  2.  
  3. -> get stash_hash
  4.  
  5. git stash apply $stash_hash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement