Git - How to list the file names only that changed between two commits

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

I have a bunch of commits in the repo. I want to see a list of files changed between two commits - from SHA1 to SHA2.

What command should I use?

Answers

git diff --name-only SHA1 SHA2

where you only need to include enough of the SHA to identify the commits. You can also do, for example

git diff --name-only HEAD~10 HEAD~5

to see the differences between the tenth latest commit and the fifth latest (or so).

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/1552340/how-to-list-the-file-names-only-that-changed-between-two-commits

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils