git: list all commit hashes


To list the commit hashes – and nothing else but the commit hashes – in the whole history of a git repository:

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