Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 413
zaza Avatar asked Nov 17 '09 14:11

zaza


People also ask

How do you see what files were changed in git?

To find out which files changed in a given commit, use the git log --raw command. It's the fastest and simplest way to get insight into which files a commit affects.


2 Answers

git diff --name-only master bug1 
like image 78
Cory Petosky Avatar answered Oct 11 '22 22:10

Cory Petosky


From your master:

git diff --name-status BRANCH

See the git diff man page for details.

like image 42
Tim Henigan Avatar answered Oct 11 '22 20:10

Tim Henigan