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/01/19 17:15] val [Пример с использованием cron] |
сервис_git [2022/02/24 17:03] val [Работа с локальным репозиторием] |
||
---|---|---|---|
Line 7: | Line 7: | ||
* [[https://git-lfs.github.com/|An open source Git extension for versioning large files]] | * [[https://git-lfs.github.com/|An open source Git extension for versioning large files]] | ||
+ | * [[https://youtu.be/SEvR78OhGtw|youtube/Артем Матяшов/Git. Большой практический выпуск]] | ||
===== Работа с локальным репозиторием ===== | ===== Работа с локальным репозиторием ===== | ||
Line 42: | Line 43: | ||
server:~/conf$ git log --follow -- file1 | server:~/conf$ git log --follow -- file1 | ||
- | server:~/conf$ git show <commit hash>:file1 | + | server:~/conf$ git show <commit hash> Все изменения файлов в этом коммите |
- | server:~/conf$ git diff <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 N> <commit hash M> file1 | server:~/conf$ git diff <commit hash N> <commit hash M> file1 |