git/in/index.md

124 lines
1.3 KiB
Markdown
Raw Normal View History

2024-02-28 16:43:10 +00:00
# Possibilités
2024-02-28 19:46:29 +00:00
1. Outils
1. Concepts
2024-02-28 16:43:10 +00:00
2024-02-28 19:46:29 +00:00
## Outils
### Hachage
2024-02-28 16:43:10 +00:00
::: incremental
* SHA-1
* SHA-256
:::
2024-02-29 13:27:26 +00:00
::: notes
* versions ≥ 2.42 rétro-compatibles
:::
2024-02-28 19:46:29 +00:00
### Pointeurs
2024-02-28 16:43:10 +00:00
* branches
* étiquettes
2024-02-28 19:46:29 +00:00
# {-}
## Concepts
2024-02-28 16:43:10 +00:00
2024-02-28 19:46:29 +00:00
### Zones
2024-02-28 16:43:10 +00:00
::: incremental
* répertoire de travail
* index
* historique
:::
# Porcelaine
2024-02-28 19:55:43 +00:00
1. Bases
1. Local
1. Collaborer
2024-02-28 19:49:00 +00:00
## Bases
2024-02-28 17:03:45 +00:00
2024-02-28 19:49:00 +00:00
### git init
2024-02-28 17:03:45 +00:00
* bare | non-bare
2024-02-28 19:49:00 +00:00
### git config
2024-02-28 17:03:45 +00:00
* system → global → local
* user name & email
* description
2024-02-28 19:49:00 +00:00
### git status
2024-02-28 17:03:45 +00:00
* -u
2024-02-28 16:43:10 +00:00
2024-02-28 19:49:00 +00:00
# {-}
## Local
2024-02-28 17:10:44 +00:00
2024-02-28 19:49:00 +00:00
### Commandes
2024-02-28 17:22:05 +00:00
* git branch --force
* git add
* git commit
* git checkout | switch
* git worktree
* git merge
* fast-forward
* three-way
* git rebase
* as-is
* merge-squash
* cherry-pick
* interactive
* git reflog
2024-02-28 19:49:00 +00:00
# {-}
## Collaborer
2024-02-28 17:10:44 +00:00
2024-02-28 19:49:00 +00:00
### Commandes
2024-02-28 17:10:44 +00:00
* git remote | clone
* git fetch | pull
* git push
* git tag
2024-02-28 16:43:10 +00:00
# Plomberie
2024-02-28 17:03:45 +00:00
2024-02-28 19:55:43 +00:00
1. Basique
1. Pointeurs
1. Objets
2024-02-28 17:03:45 +00:00
## Basique
* .git/
::: incremental
* config
* description
:::
2024-02-28 19:49:00 +00:00
# {-}
2024-02-28 17:03:45 +00:00
## Pointeurs
* .git/refs/
::: incremental
1. heads/branch
1. remotes/remote/branch
1. tags/tag
:::
2024-02-28 19:49:00 +00:00
# {-}
2024-02-28 17:03:45 +00:00
## 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