Is there a way to see what files have changed in a branch?
Find what file changed in a commit To find out which files changed in a given commit, use the git log --raw command.
An alternative to the answer by @Marco Ponti, and avoiding the checkout:
git diff --name-only <notMainDev> $(git merge-base <notMainDev> <mainDev>)
If your particular shell doesn't understand the $() construct, use back-ticks instead.
All you have to do is the following:
git checkout <notMainDev> git diff --name-only <mainDev>
This will show you only the filenames that are different between the two branches.
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