2

Possible Duplicate:
List all commits for a specific file

I have a very deep git repository in which using my eyes to locate all commits of a particular file isn't very practical.

I tried to see if I can grep the output of git log --all but there is no trace of any filename there...

How do find all commits in which a particular file actually changed?

Community
  • 1
  • 1
scatmoi
  • 1,958
  • 4
  • 18
  • 32

1 Answers1

2

You can pass a path to git log:

git log -- path/to/file
georgebrock
  • 28,393
  • 13
  • 77
  • 72