• 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 a custom software development company co-founded by full-stack .NET Software developer Alex Shapovalov who lives in Mississauga, ON and provides software development services in Mississauga and GTA.

Contact Information

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