Git – How to list only the file names that changed between two Commits/Tags?

List only the file names that changed between two commits or between two tags and shows what operations were done to the files:

git diff --name-status SHA1 SHA2

Example Output:

A       app/Helpers/FooBar.php
M       app/Models/Foo.php
R100    public/assets/plugins/foo/Foo.js public/assets/plugins/foo/1.1.1/Foo.js
A       public/assets/plugins/foo/2.7.2/Foo.js
M       resources/lang/vendor/admin/en/foo.php
D       resources/views/foo.blade.php
D       resources/views/bar.blade.php
M       resources/views/inc/sidebar.blade.php
M       resources/views/inc/nav.blade.php
  • A for Added
  • M for Updated
  • R for Renamed
  • D for Deleted