Aucun fichier indexé. Utilisez git add pour indexer vos changements.
📊 Graphe de commitsbranche actuellefeature/search
🏷️ TagsBeginner0/5
📖 Concepts
TagUne référence nommée vers un commit précis. Contrairement aux branches, les tags ne bougent pas quand de nouveaux commits sont créés. Utilisés pour marquer des points importants — typiquement des releases (v1.0, v2.0).
Tag léger (lightweight)Simplement un nom pointant sur un commit (comme une branche qui ne bouge jamais). Aucune métadonnée supplémentaire.
Tag annoté (annotated)Un tag avec des métadonnées : auteur, date et message. Stocké comme un objet Git complet. Créé avec git tag -a.
Affichez l'historique pour trouver le commit de release
Regardez le log pour identifier le commit à taguer comme release.
● Affichez l'historique pour trouver le commit de release
○ Créez un tag sur le commit initial
○ Taguez le HEAD actuel en « v1.0 »
○ Listez tous les tags
○ Supprimez le tag « v0.1 »
🧩 The Interrupted FlowNon résolu
📖 Histoire
You're halfway through building a search feature — files modified, nothing committed. Your manager just pinged: critical bug on main, needs fixing NOW.
You can't commit half-finished work. You can't lose it either.
Stash your current changes, switch to main, fix the bug (change the return value in src/api.js from null to []), commit the fix, then return to your feature work exactly where you left off.
Objectif
Résolvez le problème en utilisant les bonnes commandes Git.
Terminal
🧩 Problem: The Interrupted Flow
You're mid-feature when an urgent bug report arrives. Stash your work, fix the bug, then recover cleanly.
Use the terminal to solve the problem. Results are checked automatically.