How can I find out which files have been modified in a branch?

zaza picture zaza · Nov 17, 2009 · Viewed 12.2k times · Source

I have two branches: master and bug1. I checked out bug1, did bunch of changes and multiple commits. How do I get a list of all files that were changed on the branch? I'm not interested in hashes, dates or any other commit related details. I just want to get a simple list of touched files.

Answer

Cory Petosky picture Cory Petosky · Nov 17, 2009
git diff --name-only master bug1