Курс «Git»
Строки из уроков курса. Подходит, чтобы повторить материал курса вне обучения.
Что внутри
git init git status git add . git add file.txt git commit -m "Initial commit" git commit -am "Update files" git log git log --oneline git log --graph git init git add . git commit -m "Initial commit" git status git add file.txt git commit -m "Add file" git log --oneline git status git add . git commit -am "Update" git log --graph git diff git diff --staged git checkout -- file.txt git restore file.txt git rm file.txt git mv old.txt new.txt git show HEAD git diff git add file.txt git diff --staged git commit -m "Update" git status git restore file.txt git mv old.txt new.txt git add . git branch git branch feature git checkout feature git checkout -b feature git switch feature git switch -c feature git branch -d feature git branch git checkout -b feature git add . git commit -m "Add feature" git switch -c dev git branch git switch main git branch -d dev git checkout -b hotfix git commit -am "Fix bug" git checkout main git merge feature git merge --no-ff feature git merge --abort git status git add file.txt git commit -m "Merge conflict resolved" git checkout main git merge feature git log --graph --oneline git checkout dev git merge --no-ff hotfix git branch -d hotfix git remote add origin https://github.com/user/repo.git git remote -v git push origin main
Показаны первые 40 из 62.
Рекорды
Здесь ещё никто не заезжал
В режиме «безошибочный» по этому словарю рекордов пока нет. Первый результат будет вашим.
Рекорды сохраняются у зарегистрированных. Войти.