divers:github
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| divers:github [2024/10/30 05:54] – root | divers:github [2025/03/25 08:07] (Version actuelle) – root | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ===== Ajouter à un nouveau repository ===== | ||
| <code bash>git init | <code bash>git init | ||
| git config --global init.defaultBranch main | git config --global init.defaultBranch main | ||
| Ligne 6: | Ligne 7: | ||
| git commit -am " | git commit -am " | ||
| git push origin main | git push origin main | ||
| - | |||
| - | |||
| </ | </ | ||
| + | Version alternative: | ||
| + | <code bash> | ||
| + | git remote add origin git@github.com: | ||
| + | git add . | ||
| + | git commit -m " | ||
| + | git push -u origin main | ||
| + | git pull origin main | ||
| + | </ | ||
| ===== Cloner une branche en particulier ===== | ===== Cloner une branche en particulier ===== | ||
divers/github.1730267652.txt.gz · Dernière modification : de root
