This shows you the differences between two versions of the page.
informatique:git_old [2024/11/18 19:04] – created yahiko | informatique:git_old [2024/11/18 19:36] (current) – removed yahiko | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <WRAP center round important 60%> | ||
- | La suite est pour archive | ||
- | </ | ||
- | |||
- | |||
- | ===== S' | ||
- | <code shell> | ||
- | git config --global user.name " | ||
- | git config --global user.email " | ||
- | git config --global --list | ||
- | |||
- | </ | ||
- | |||
- | ===== Initialiser et ajouter un dépôt ===== | ||
- | <code shell> | ||
- | cd dossier_repo | ||
- | git init | ||
- | git remote add origin https:// | ||
- | git remote -v | ||
- | git branch -M main | ||
- | git push -uf origin main | ||
- | </ | ||
- | |||
- | ===== Ajouter des trucs au dépot ===== | ||
- | <code shell> | ||
- | cd dossier_repo | ||
- | git add [dossier ou fichier] | ||
- | git commit -m " | ||
- | git push | ||
- | </ |