• Home /
  • Blog /
  • How to find list of files which are different between two branches in Git
Git Tutorials

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 a list of files names changed between two branches in Git

How to find a 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

Yaplex - Freelance developer - white logo on black background

Yaplex is an IT Consulting and .NET development company co-founded by freelance developer Alex Shapovalov who lives in Canada and provides software development services in Canada, USA and all over the world.

Contact Information

Toronto, Canada
Phone: +1 647 328 3809
Email: alex@yaplex.com