Welcome to the Learn Git Game! This interactive command-line game teaches you how to use Git by simulating a repository environment and walking you through various Git commands.
The game consists of multiple levels, each teaching a specific Git command or concept. Your goal is to complete each level by entering the correct Git commands based on the provided objectives.
-
Initialize a Git Repository
Learn how to set up a new Git repository usinggit init. -
Stage Files
Add files to the staging area withgit add. -
Commit Changes
Commit your staged changes usinggit commit. -
Create Branches
Learn to create new branches withgit branch. -
Switch Branches
Switch between branches usinggit checkout. -
Advanced Git Features (Coming Soon)
Learn about merging, rebasing, resolving conflicts, and more.
- A C++ compiler (e.g.,
g++) - A terminal or command prompt
- Clone this repository:
git clone https://github.com/your-username/learn_git.git
- cd learn_git
- g++ -std=c++17 -o learn_git learngit.cpp
- ./learn_git