P
💻DeveloppementBeginnerAll AIs

Learn Git Basics for Beginners

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

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 from the concept (why Git?) before going to commands. Requesting an original analogy avoids the overused explanations that don't always help create an intuitive understanding.</p><p>Organizing commands by usage situation ('what to do when...') rather than alphabetically or by 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 recover on their own rather than getting stuck.</p>

Use Cases

Git training for beginnersOnboarding new developersSelf-learning version control

Expected Output

A complete pedagogical 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

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Similar Prompts

💻DeveloppementAdvancedClaude

Design a Microservices Architecture

Design a complete microservices architecture with DDD decomposition, communication patterns, resilience, and observability.

5087
💻DeveloppementIntermediateChatGPT

Optimize React Application Performance

Optimize your React application to achieve excellent Core Web Vitals metrics through advanced memoization and code splitting techniques.

3691
💻DeveloppementIntermediateGemini

Define a Git Strategy for a Team

Define a complete Git strategy adapted to your team: branching model, conventions, code review, and release management.

1983
💻DeveloppementAdvancedChatGPT

Legacy Code Refactoring

Safely and incrementally refactor legacy code following SOLID principles and modern best practices.

2988