coffreobsidian/command_list/Git commands.md
2025-03-23 20:59:56 +01:00

21 lines
1007 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
---
---
## 🧠 Tableau récapitulatif des commandes Git utiles
| Commande Git | Utilité |
| --------------------------- | ------------------------------------------ |
| `git status` | Affiche les fichiers modifiés |
| `git add .` | Ajoute tous les fichiers à lindex |
| `git commit -m "message"` | Enregistre les changements avec un message |
| `git push` | Envoie les changements sur GitHub |
| `git pull` | Récupère les derniers changements |
| `git branch` | Liste les branches locales |
| `git switch <branche>` | Change de branche |
| `git checkout -b <branche>` | Crée et bascule sur une nouvelle branche |
| `git log --oneline` | Historique rapide des commits |
| `git stash` / `pop` | Sauvegarde temporaire de changements |
---