简体   繁体   English

有没有办法从某个路径找到 git 分支中更改的所有文件?

[英]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.

相关问题 有没有办法在Git中查看分支上的所有已更改文件? - Is there a way to see all changed files on a branch in Git? 从某个目录中的另一个分支检出所有更改的文件 - Checkout all changed files from another branch within a certain directory git - 查找已创建的分支中已更改的文件 - git - find files changed in branch, since created Svn 迁移到 Git - 在 Git 中获取所有已更改文件的状态,因为在创建分支的位置已更改整体路径 - Svn migration to Git - Getting a status in Git on all changed files since a branch was created where the overall path has changed Git分支文件已从命令行更改 - Git branch files changed from command line 如何在特定路径中为特定错误列出特定类型的所有已更改文件的git列表? - How can I make git list all changed files of a certain type in a specific path for a specific bug? GIT - 查找本地分支中提交的所有文件 - GIT - Find all the files committed in a local branch 如何从git导出所有分支更改的文件与本地主文件相比 - how to export all branch changed files compared to local master from git Git合并为仅从一个分支更改的几乎所有文件带来冲突 - Git merge gives conflicts for almost all files changed from only one branch 从master到git分支的git rebase显示所有文件已更改 - git rebase from master into feature branch PR shows all files changed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM