Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Look up commit log for commit ID in Git

Tags:

git

I want to look at a commit by ID. For instance, I want to know the code that got committed for that ID, something like:

git log <commit_id> 

And this would display the committed code and commit message that corresponds to this ID.

like image 625
Shraddha Avatar asked Nov 15 '12 13:11

Shraddha


1 Answers

git show <commit_id> 

is the droid you are looking for, probably.

like image 53
Seth Robertson Avatar answered Oct 01 '22 06:10

Seth Robertson