Quantcast
Channel: Get a list of all Git commits, including the 'lost' ones - Stack Overflow
Viewing all articles
Browse latest Browse all 13

Answer by Kieran for Get a list of all Git commits, including the 'lost' ones

$
0
0

When I tackle this issue I use the following command:

git reflog |  awk '{ print $1 }' | xargs gitk

This lets me visualise recent commits which have become headless.

I have this wrapped up in a script helper called ~/bin/git-reflog-gitk.

Edit: - my git-reflog-gitk wrapper is redundant - as you can now call gitk --reflog directly


Viewing all articles
Browse latest Browse all 13

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>