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
works/linux/git.1476365954.txt.gz · Last modified: 2018/12/15 17:17 (external edit)