1 KiB
1 KiB
author | date | lang | title | subtitle |
---|---|---|---|---|
Marc Beninca | 2024 / 03 | fr | Git PPP | Possibilités, Porcelaine & Plomberie |
Possibilités
Outils
Hachage
::: incremental
- SHA-1
- SHA-256 :::
Pointeurs
- branches
- étiquettes
Concepts
Zones
::: incremental
- répertoire de travail
- index
- historique :::
Porcelaine
1
2
Porcelaine → Bases
git init
- bare | non-bare
git config
- system → global → local
- user name & email
- description
git status
- -u
Porcelaine → Local
Porcelaine → Collaborer
Commandes
- git remote | clone
- git fetch | pull
- git push
- git tag
Plomberie
Basique
-
.git/
::: incremental
- config
- description :::
Pointeurs
-
.git/refs/
::: incremental
- 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