Find out the sequence number of the latest commit in a Github repository

To find out the order number (or how manyeth) the latest commit is in a Github repository, open up the command line in the folder of your repository and type in:

git rev-list --count HEAD

Find out the number of a commit using it’s SHA:

git rev-list --count <commit-SHA-1>

git rev-list --count 0b26b659f33332c70ebaa962d21171c5ffda27e5

Leave a Reply

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