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 :
-
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).
-
Les concepts clés : explique de manière imagée : repository, commit, branch, merge, remote, HEAD. Utilise des schémas ASCII pour visualiser.
-
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
-
Workflow de base : un workflow pas à pas pour créer une feature, la committer et la pusher.
-
Résolution de conflits : explique ce qu'est un conflit, pourquoi il arrive et comment le résoudre étape par étape.
-
Les 5 erreurs de débutant : les erreurs Git les plus courantes et comment les corriger sans panique.
-
Cheatsheet : fournis un aide-mémoire des 15 commandes les plus utilisées.
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
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
Expected Output
A complete pedagogical Git guide with illustrated explanations, commands grouped by usage, step-by-step workflow, conflict resolution, and cheatsheet.
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Avant de suivre ce prompt, configurez votre identité Git avec `git config --global user.name "VotreNom"` et `git config --global user.email "votre@email.com"`. Sans ça, la plupart des commandes d'équipe échoueront. Une astuce : utilisez `git status` après chaque étape pour vérifier votre arbre de travail.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
Set up dependency vulnerability scanning
Automate dependency scanning
Gemini Prompt to Create a REST API
Creating a REST API is a fundamental skill in modern development, but it involves many architectural decisions: choice of framework, endpoint structure, authentication management, data validation, and documentation. Google Gemini excels at generating structured code and can guide you through each step of this process. Using a well-crafted prompt, you not only get the skeleton of your API but also best practices built in from the start: proper HTTP codes, centralized error handling, security middleware, and layered architecture. Whether you're building a microservice for a personal project or an enterprise API designed to handle thousands of requests, Gemini adapts its response to the requested complexity level. The main benefit is time savings during the scaffolding phase: instead of spending hours manually configuring each component, you get a solid, coherent foundation in seconds, which you can then customize to your specific business needs.
Automatically Generate Unit Tests with AI
Automatically generate an exhaustive unit test suite covering nominal cases, edge cases, and error cases for any source code.
Migrating from JavaScript to TypeScript
Gradually migrating a codebase to TypeScript