Perhaps this is what you're looking for:
git diff --name-status master dev
See git help diff
for a full explanation of all the possible flags at the beginning of each line, but the most frequent would be (A)dded, (D)eleted and (M)odified...
Edit: Actually, if you want to get only the changes made on dev
, then the above command will work, but you don't want to compare dev
to the current head of master
, but to the place where dev
diverged from master
, which is generally the same as git merge-base master dev
. So the above command would be changed to:
git diff --name-status $(git merge-base master dev) dev