mirror of
https://github.com/k88hudson/git-flight-rules.git
synced 2025-06-17 05:21:35 -03:00
Edits: changes in specific file between commits/branches (#346)
This commit is contained in:
@ -1450,12 +1450,16 @@ Supposons que vous voulez comparer le dernier commit avec le fichier du commit `
|
||||
|
||||
```sh
|
||||
$ git diff HEAD:path_to_file/file c5f567:path_to_file/file
|
||||
# ou
|
||||
$ git diff HEAD c5f567 -- path_to_file/file
|
||||
```
|
||||
|
||||
Il en est de même pour les branches :
|
||||
|
||||
```sh
|
||||
$ git diff main:path_to_file/file staging:path_to_file/file
|
||||
# ou
|
||||
$ git diff main staging -- path_to_file/file
|
||||
```
|
||||
|
||||
### Je veux que Git ignore les changements d'un fichier spécifique
|
||||
|
Reference in New Issue
Block a user