Git CCC
Concepts, Commandes, Composants
Marc Beninca
2024 / 03
Hachage
Zones
- répertoire de travail
- index
- historique
- réserve
Commandes
- Bases
- Local
- Collaborer
git config
- system → global → local
- user name & email
- description
Commandes
- git branch –force
- git add
- git commit
- git checkout | switch
- git worktree
- git merge
- git rebase
- as-is
- merge-squash
- cherry-pick
- interactive
- git reflog
Commandes
- git remote | clone
- git fetch | pull
- git push
- git tag
Composants
- Basique
- Pointeurs
- Objets
Pointeurs
.git/refs/
- heads/branch
- remotes/remote/branch
- tags/tag
Objets
- .git/objects
- git cat-file -t|-p hash
- git update-ref refs/heads/dev hash
- git symbolic-ref HEAD refs/heads/main
- git hash-object -w file
- git update-index
- git write-tree
- git commit-tree