• Home /
  • Blog /
  • How to find list of files which are different between two branches in Git
git-tutorials.png

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

Search

Yaplex logo white text

Yaplex is an IT Consulting and .NET development company co-founded by .NET Developer Alex Shapovalov who lives in Mississauga and provides software development services in Toronto, Mississauga, and GTA.

Contact Information

Toronto, Canada
Phone: +1 647 328 3809