How do I find the most recent git commit that modified a file?

后端 未结 6 1768
北荒
北荒 2020-11-28 20:23

I want to find the most recent commit that modified a source file.

I can use git blame to see all the dates for commits by each line, but it’s difficu

6条回答
  •  遥遥无期
    2020-11-28 20:58

    I'm not sure if this is what you want but if you do a git log to get the commits that altered that file. You can pick the topmost one. It should be the one you're looking for.

提交回复
热议问题