Git Scenario Labs
Fix gitignore, merge conflicts, hooks, rebase issues, and SSH configs
How It Works
Each lab drops you into a broken config. Your job: find the bug and fix it.
Read the Scenario
Understand what went wrong — a teammate pushed broken config and CI is failing.
Debug in the Terminal
Run the tool, read the errors, and trace them back to the source.
Fix & Verify
Edit the config, re-run the check, and confirm a clean result.
Beginner
4 labsStart here — core concepts and simple fixes
Fix Branch Protection Config
Fix a GitHub Actions CI workflow with wrong triggers, outdated actions, and typos.
Fix Commit Message Convention
Fix a broken commit-msg hook regex that doesn't enforce conventional commits.
Fix .gitattributes
Fix line ending issues and binary file handling for cross-platform compatibility.
Fix .gitignore
Fix an incomplete .gitignore that exposes secrets and tracks dependencies.
Intermediate
3 labsLevel up — multi-resource configs and debugging
Fix Merge Conflict
Resolve merge conflict markers in a config file after a branch merge.
Fix Pre-commit Hook
Fix inverted exit code logic in a pre-commit hook that blocks good commits.
Fix Interactive Rebase
Fix invalid commands and wrong ordering in a git rebase todo file.
Advanced
3 labsExpert mode — complex configurations and edge cases
Fix Remote URL and Config
Fix a broken remote URL and invalid email in git config that blocks push.
Fix SSH Key Configuration
Fix SSH config with wrong hostname, key path, and missing identity settings.
Fix Git Submodule Config
Fix broken .gitmodules with wrong URLs, paths, and branch references.