Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Git & GitHub Fundamentals - Hands-On Exercises

Version control is the tool every engineer touches all day. Here you'll drive real git - configure it, create repos, stage and commit, and push to a remote - all auto-graded by inspecting actual git state.

Everything runs offline in a container: the "remote" is a local bare repo, so you can push and clone without a GitHub account (real GitHub pushes are a drill).

Quick start

make build                  # build the image once
make start  S=01-first-repo
#   ...work in the container; when done, type 'exit' (or Ctrl+D) to leave, then:
make verify S=01-first-repo
make reset  S=01-first-repo

Needs Docker and make (both provided in GitHub Codespaces).

Sections

# Section Course § Skills
01 Your First Repo 4-6 git config, init, add, commit, log
02 Tracking Changes 6 staging area, rm --cached, diff, log
03 Remote Repositories 7 remote add, push, clone (local bare remote)
04 Capstone: Zero to Pushed - new project from empty folder to pushed

Each section: README.md (3-tier tasks) · seed.sh · verify.sh · solutions.md.

How grading works

The grader runs git commands against your repo (git log, git status, rev-list --count) and the bare remote to check the real outcome - e.g. "the repo has two commits", "origin points at the remote", "the push landed". So you have to actually use git, not just know the commands. Stuck? Each solutions.md has the full command sequence.