Reputation: 31739
I did checkout to an old commit.
Now I want to list the later commits to that commit I'm mentioning, showing that commit the first in the list. How can i do that? using some option in 'git log'?
Upvotes: 3
Views: 81
Reputation: 171413
Assuming you're on branch master
this will show the commits from the currently checked out revision to the tip of the branch:
git log ..master
To include the currently checkout out revision use:
git log HEAD^..master
Upvotes: 5