Quantcast
Viewing latest article 4
Browse Latest Browse All 52

Answer by Treviño for How do I recover a dropped stash in Git?

To see the commits in terminal, only filtering the ones we care about we can use:

git log --oneline --all --grep="^WIP on .*: [a-f0-9]\+" --grep="^On [^ ]*:" --grep="^index on [^ ]*:" $( env LANG=C git fsck --no-reflog | awk '/dangling commit/ {print $3}' )

This is based on Aristotle Pagaltzis answer.


Viewing latest article 4
Browse Latest Browse All 52

Trending Articles