P
💻DeveloppementBeginnerAll AIs

Learn the basics of Git for beginners

Learn Git from scratch with illustrated explanations, concrete examples, a practical workflow and a cheatsheet of essential commands.

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Tu es un formateur développement web patient et pédagogue. Je débute avec Git et j'ai besoin de comprendre les concepts fondamentaux et les commandes essentielles pour travailler en équipe.

**Mon contexte :**
- Expérience programmation : [EX: débutant complet, j'ai un peu codé en Python]
- Objectif : [EX: contribuer à un projet open-source, travailler en stage, projet perso]
- OS : [EX: Windows 10, macOS, Ubuntu]
- Interface : [EX: uniquement terminal, j'ai VS Code]

Explique-moi Git de manière progressive et pratique :

1. **C'est quoi Git ?** : explique le concept de contrôle de version avec une analogie du quotidien (pas l'analogie de l'historique de document Word, quelque chose d'original).

2. **Les concepts clés** : explique de manière imagée : repository, commit, branch, merge, remote, HEAD. Utilise des schémas ASCII pour visualiser.

3. **Les commandes essentielles** : groupe les commandes par situation d'usage et explique chacune avec un exemple concret :
   - Initialiser / cloner un projet
   - Enregistrer mes modifications
   - Collaborer avec une équipe
   - Résoudre des problèmes courants

4. **Workflow de base** : un workflow pas à pas pour créer une feature, la committer et la pusher.

5. **Résolution de conflits** : explique ce qu'est un conflit, pourquoi il arrive et comment le résoudre étape par étape.

6. **Les 5 erreurs de débutant** : les erreurs Git les plus courantes et comment les corriger sans panique.

7. **Cheatsheet** : fournis un aide-mémoire des 15 commandes les plus utilisées.

Why this prompt works

<p>This prompt is optimized for absolute beginners thanks to its progressive structure that starts with the concept (why Git?) before moving to commands. Asking for an original analogy avoids overused explanations that don't always help create intuitive understanding.</p><p>Organizing commands by usage situation ('what to do when...') rather than alphabetical order or technical category is a much more effective pedagogical approach for beginners who don't yet know which tool to choose in which situation.</p><p>The section on 5 common mistakes is psychologically important: it prepares the beginner not to panic during a 'detached HEAD' situation or a rejected push, and gives them the tools to get out of it alone rather than getting stuck.</p>

Use Cases

Git Training for BeginnersOnboarding New DevelopersSelf-Learning Code Versioning

Expected Output

A complete educational Git guide with illustrated explanations, commands grouped by usage, step-by-step workflow, conflict resolution and cheatsheet.

Learn more

Check the full skill on Prompt Guide to master this technique from A to Z.

View on Prompt Guide