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