How to find list of files which are different between two branches in Git

You can compare branches in git using git diff first-branch..second-branch but this will give you all changes between branches, but sometimes you need to know only files which were changed. You can do it using the following git command, it will give you list of files names changed between two branches in Git

How to find list of files which are different between two branches

# files changed between first-branch and second-branch
git diff --name-status first-branch..second-branch



Comments

Social media

Search

Latest Tweets