ehftwelve ehftwelve - 1 year ago 110
Git Question

Commits since a certain commit number

Is there anyway to get a list of commits from a given commit number to HEAD?

I know this is possible by the commit date, but I need it by the commit number and I can't seem to find any documentation, or even if this is possible.

Answer Source
git rev-list <since_hash>..HEAD

or to include the commit:

git rev-list <since_hash>^..HEAD

You can use git log instead of git rev-list as well to get additional details.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download