I have a git repo containing many folders. I need to find out what files have changed in one of those folders between two commits.
Is there a nice way of doing this?
I think you can just stick the path at the end of git diff
.
git diff HEAD^ HEAD special_folder/
git diff --name-status OLD NEW.
There are several options to get just what you want:
git diff --stat OLD NEW. #show graphically how much changed.
git diff --numstat OLD NEW. #show numerically how much changed.
You might also want to consider: -M
to show renames and -C
to show copies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With