This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_git [2022/02/24 17:03] val [Работа с локальным репозиторием] |
сервис_git [2022/02/24 21:03] val [Работа с локальным репозиторием] |
||
---|---|---|---|
Line 41: | Line 41: | ||
server:~/conf$ git log | server:~/conf$ git log | ||
- | server:~/conf$ git log --follow -- file1 | + | server:~/conf$ git log --follow -- file1 В каких коммитах менялся файл |
- | server:~/conf$ git show <commit hash> Все изменения файлов в этом коммите | + | server:~/conf$ git show <commit hash> Все изменения файлов в этом коммите по |
server:~/conf$ git show <commit hash>:file1 Содержимое файла в этом коммите | server:~/conf$ git show <commit hash>:file1 Содержимое файла в этом коммите | ||
- | server:~/conf$ git show <commit hash> file1 Изменения файла в этом коммите | + | server:~/conf$ git show <commit hash> file1 Изменения файла между этим и предыдущим коммитом |
- | server:~/conf$ git diff <commit hash> file1 Изменения файла в следующем коммите | + | server:~/conf$ git diff <commit hash> file1 Изменения файла после этого коммита |
server:~/conf$ git diff <commit hash N> <commit hash M> file1 | server:~/conf$ git diff <commit hash N> <commit hash M> file1 |