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 09:00] val [Сервис Git] |
сервис_git [2022/06/07 11:56] val [Работа с локальным репозиторием] |
||
---|---|---|---|
Line 28: | Line 28: | ||
server:~/conf$ git status | server:~/conf$ git status | ||
+ | |||
+ | server:~/conf$ git config --global user.email "student@corpX.un" | ||
+ | server:~/conf$ git config --global user.name "FIO" | ||
server:~/conf$ git commit -a -m 'ver: 1.1' | server:~/conf$ git commit -a -m 'ver: 1.1' | ||
Line 41: | Line 44: | ||
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>: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 |