git: list all commit hashes

To list all the commit hashes in the whole history of a git repository:

git log --pretty=format:"%h"

Leave a Reply

Your email address will not be published. Required fields are marked *