Use the following compare the current branch against master branch:
$ git diff --name-status master
Use the following to compare any two branches:
$ git diff --name-status BranchA..BranchB
For more information please go through the following tutorial to get more info about git: