1
0
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:
apastan
2023-02-01 05:16:27 +03:00
committed by GitHub
parent c34b49ff5a
commit 18c656604b
6 changed files with 25 additions and 1 deletions

View File

@ -1681,12 +1681,16 @@ $ git push origin refs/tags/<tag-name>
```sh
$ git diff HEAD:path_to_file/file c5f567:path_to_file/file
# или
$ git diff HEAD c5f567 -- path_to_file/file
```
Аналогично для веток:
```sh
$ git diff main:path_to_file/file staging:path_to_file/file
# или
$ git diff main staging -- path_to_file/file
```
### Я хочу, чтобы Git игнорировал изменения в определенном файле