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:
# 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.