views:

20

answers:

1

Hey,

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
...

cheers!

f.

+2  A: 

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
Greg Hewgill
that did it!cheers!
flpgdt