Git Basics
15 projects
Hands-on projects for Git.
- 1
Create Repository Workflow
Practice the full workflow of creating a new Git repository, adding a README, making your first commit, and checking the status. A complete first-repository drill.
Beginner ~10 min - 2
Commit History Exercise
Build a small commit history by making several changes and commits, then inspect and interpret the log. Practice writing clear commit messages and reading history.
Easy ~15 min - 3
Branch Workflow Simulation
Simulate a feature-branch workflow: create a branch, make a commit, merge it back to main, and clean up. The core pattern behind all team Git workflows.
Medium ~25 min - 4
Gitignore Setup Project
Create a realistic .gitignore file for a web project, learn pattern syntax, and verify that sensitive and generated files are properly excluded from version control.
Beginner ~10 min - 5
Stash Workflow Practice
Practice the git stash workflow: stash uncommitted changes, switch branches to fix an urgent bug, then return and restore your stashed work. A real-world scenario every developer faces.
Easy ~15 min - 6
Merge Conflict Resolution
Create a merge conflict on purpose, examine the conflict markers, resolve it by hand, and complete the merge. The most feared Git scenario, demystified.
Medium ~20 min - 7
Remote Collaboration Simulation
Simulate a remote collaboration workflow using a bare repository as a stand-in for GitHub. Practice push, pull, fetch, and handling rejected pushes locally.
Medium ~25 min - 8
Tag and Release Project
Create annotated tags for version releases, list and inspect tags, checkout a tagged version, and push tags to a remote. Practice the release management workflow.
Easy ~15 min - 9
Rebase Practice Project
Practice rebasing a feature branch onto an updated main branch. See how rebase creates linear history, compare it with merge, and learn when to use each.
Medium ~20 min - 10
Pull Request Simulation
Simulate a full pull request workflow locally: fork (clone), create a feature branch, make changes, push, request review, address feedback, and merge. The complete contribution cycle.
Medium ~30 min - 11
Interactive Rebase to Clean History
Use git rebase -i to squash, reorder, and edit commits before sharing a branch. Practice the most powerful history-rewriting tool in Git.
Medium ~35 min - 12
Git Stash Workflow
Practice the stash workflow — save uncommitted work, switch contexts, and pop it back. Master stash, stash list, and stash drop.
Easy ~25 min - 13
Cherry-Pick Commits
Use git cherry-pick to apply specific commits from one branch to another. Practice selective backporting and conflict resolution.
Medium ~30 min - 14
Git Hooks for Automation
Write local Git hooks — pre-commit to block large files, commit-msg to enforce format, and pre-push to run tests. Practice Git's built-in automation points.
Medium ~35 min - 15
Monorepo with Git Submodules
Design a monorepo setup using Git submodules to share a common library across multiple projects. An open-ended project on submodule management.
Medium ~45 min