[英]Is there a way to find all the files changed in a git branch from a certain path?
几个月以来我一直在从事一个项目,我正在转向一个新版本,我需要检查更改是否由其他人完成或找出不同之处。 有没有办法回顾我的分支,只看到某个文件夹中在多次提交中发生更改的文件?
谢谢
基兰
您可以在仓库的本地克隆上运行git log
:
# this will list the commits that touched target files or directories :
git log --graph -- path/to/file1 path/to/file2
git log --graph -- path/to/directory
# add the -p option if you want to view the diff for each commit at the same time :
git log --graph -p -- path/to/file1 path/to/file2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.