Git
Распределённая система контроля версий. Отслеживает изменения, ветвление, совместная работа, история.
Explanation
| Документ | Описание |
|---|
| internals | Объекты (blob, tree, commit), HEAD, staging area, immutability |
| branching-models | GitHub Flow, Trunk-Based, Git Flow, Conventional Commits |
Tutorials
| # | Документ | Что изучаем |
|---|
| 01 | 01-basics | init, add, commit, status, log, diff, .gitignore |
| 02 | 02-branching | branch, switch, merge, конфликты, stash |
| 03 | 03-collaboration | remote, clone, push, pull, fork, Pull Request |
How-to
| Документ | Описание |
|---|
| interactive-rebase | squash, reword, reorder, edit, drop коммитов |
| undo-mistakes | amend, reset, revert, restore, reflog, cherry-pick |
| commit-conventions | Conventional Commits, commitlint + husky, автоматический CHANGELOG |
Recipes
Reference
| Документ | Описание |
|---|
| cheatsheet | Все команды: init, branch, merge, remote, undo, stash, tag |
Быстрый старт
git init
git add .
git commit -m "Initial commit"
git remote add origin git@github.com:user/repo.git
git push -u origin main
Связанные разделы
- index — SSH (аутентификация для Git remote)