Your First Repository
Turn a folder into a Git repo and make your first commit.
A beginner Git challenge worth 3 points. Solve it hands-on in a real Git environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: You've just written some code in /tmp/repo and want version control.
The folder /tmp/repo contains app.py but is not tracked by Git yet.
Tasks:
cd /tmp/repo- Initialize a Git repository (
git init) - Stage and commit
app.py
Commands to learn: git init, git add, git commit
Run check when done.