informatique:git
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
informatique:git [2023/05/09 09:06] – created yahiko | informatique:git [2024/04/09 09:06] (current) – yahiko | ||
---|---|---|---|
Line 4: | Line 4: | ||
https:// | https:// | ||
- | ===== Se connecter | + | ===== S' |
- | <codedoc> | + | <code shell> |
git config --global user.name " | git config --global user.name " | ||
git config --global user.email " | git config --global user.email " | ||
git config --global --list | git config --global --list | ||
- | </codedoc> | + | </code> |
- | ===== Initialiser et ajouter un dépot | + | ===== Initialiser et ajouter un dépôt |
- | <codedoc> | + | <code shell> |
cd dossier_repo | cd dossier_repo | ||
git init | git init | ||
Line 20: | Line 20: | ||
git branch -M main | git branch -M main | ||
git push -uf origin main | git push -uf origin main | ||
- | </codedoc> | + | </code> |
+ | |||
+ | ===== Ajouter des trucs au dépot ===== | ||
+ | <code shell> | ||
+ | cd dossier_repo | ||
+ | git add [dossier ou fichier] | ||
+ | git commit -m " | ||
+ | git push | ||
+ | </code> |
informatique/git.1683623162.txt.gz · Last modified: 2023/05/09 09:06 by yahiko