git - 如何列出更改特定文件的所有提交?

标签 git commit

有没有办法列出所有更改特定文件的提交?

最佳答案

--follow 适用于特定文件

git log --follow -- filename

与给出的其他解决方案的区别

请注意,其他解决方案包括 git log path(没有 --follow)。如果你想跟踪,这种方法很方便。 目录发生变化,但重命名文件时出错(因此使用--follow filename)。 p>

关于git - 如何列出更改特定文件的所有提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3701404/

相关文章:

git - 我在 "create git repo here"上犯了一个灾难性的错误——我该如何纠正/撤消它?

linux - Subversion 的预提交 Hook 失败

git push/pull origin [branch] 快捷方式?

svn - 在 Tortoise SVN 中向用户预提交显示一条消息

svn - SVN递归提交的概念

git - 在 centos : problems with ssh keys and git 上设置 Jenkins

git - (Git Merging) 何时使用 'ours' 策略、 'ours' 选项和 'theirs' 选项?

git - 防止 git secret 配置文件被推送

git - 如何在本地和远程删除 Git 分支?

c# - 无法在 Entity Framework 中使用 AddRange 自动生成 IDENTITY