[英]Is there a way to find all the files changed in a git branch from a certain path?
I've been working on a project from a few months now and I'm moving to a new version and I need to check if the changes have been done by someone else or find what is different.几个月以来我一直在从事一个项目,我正在转向一个新版本,我需要检查更改是否由其他人完成或找出不同之处。 Is there a way to look back at my branch and only see the files that have changed in a certain folder over a number of commits?
有没有办法回顾我的分支,只看到某个文件夹中在多次提交中发生更改的文件?
Thanks谢谢
Kieran基兰
You can run git log
on your local clone of the repo:您可以在仓库的本地克隆上运行
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.