filippo
filippo

Reputation: 5793

Find a file history

How do I find in which git commits a certain file was changed? like..

git --when-did-it-change scr/ThatBuggyClass.java

88fa9f  (HEAD) last time trying to debug it
99321c  another round with ThatBuggyClass
...

Upvotes: 1

Views: 144

Answers (1)

Greg Hewgill
Greg Hewgill

Reputation: 994529

Use git log:

git log src/ThatBuggyClass.java

You can use the --oneline switch to format the output like your example:

git log --oneline src/ThatBuggyClass.java

Upvotes: 3

Related Questions