Get all files that have been modified in git branch
Is there a way to see what files have changed in a branch? 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. amazed this has not been said so far! git diff master...branch So see the changes only on branch To check the current branch use