Get a list of all git commits, including the ‘lost’ ones

Try:

git log --reflog

which lists all git commits by pretending that all objects mentioned by reflogs (git reflog) are listed on the command line as <commit>.

Leave a Comment