git diff : différences entre le working directory et le staging index.
git diff –staged : différences entre le staging index et le repository
(identique à git diff –cached)
git diff <SHA> : différences entre le commit et le working directory
git diff <SHA> <file> : différences concernant le fichier <file> entre le commit et le working directory
git diff <SHA-x>..<SHA-y> : différences entres deux commits
git diff –stat –summary– : donne différentes informations de comparaison
git diff –b : ignorer les changements d'espaces = git diff –ignore-space-change
git diff –w : ignorer tous les changements d'espace = git diff –ignore-all-space