tirenweb
tirenweb

Reputation: 31739

git: after checking out an old commit, how can i see the next commits?

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

Answers (1)

Jonathan Wakely
Jonathan Wakely

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

Related Questions