works:linux:git

This is an old revision of the document!


Небольшая книжка по GIT

После изменений файла

git status
git add filename1 filename2 filename3
git commit -m "1st comment
2nd comment line"
git push

Откат изменений

# Откат всех мониторных файлов
git reset --hard
# Удалить все не мониторенные файлы
git clean -df
# Откат незакомиченого файла
git checkout filename1 filename2

Создать бранч, залить бранч

git checkout -b <your-new-branch>
git add <files>
git commit -m <message>
 
git push -u origin <your-new-branch>
works/linux/git.1628067898.txt.gz · Last modified: 2021/08/04 09:04 by Chugreev Eugene