Git/GitHubの基本操作を安全な疑似環境で学べるTUIゲーム。
実際のgitコマンドは実行せず、内部でリポジトリ状態をシミュレーションするため、 何度失敗しても壊れません。
- 6つのレベルで段階的に学習(edit/add/commit → branch → push/pull → PR → merge)
- コミットグラフのリアルタイム表示
- PR作成・レビュー・CI・マージの一連フローを体験
- undo/reset で安心して試行錯誤
- 間違えたら正しいコマンドを自動補完
- 進捗に応じたヒント自動表示
brew install takish/tap/git-trainergit clone https://github.com/takish/git-trainer.git
cd git-trainer
make build
./git-trainergo install github.com/takish/git-trainer@latest↑/↓: レベル選択Enter: 開始q: 終了
- コマンド入力 +
Enter: 実行 Tab: 正しいコマンドを補完Ctrl+Z: undoCtrl+R: reset?: ヘルプEsc: レベル選択に戻る
| Category | Commands |
|---|---|
| 確認 | git status, git log, git diff |
| 変更 | edit <file>, git add ., git add <file>, git commit -m "<msg>" |
| ブランチ | git branch, git branch <name>, git checkout <name>, git checkout -b <name> |
| リモート | git push, git pull |
| PR (gh CLI) | gh pr create, gh pr list, gh pr view <id>, gh pr comment <id> -b "<text>", gh pr review <id> --approve, gh pr merge <id> |
| 学習支援 | undo, reset |
| Level | Title | Learn |
|---|---|---|
| 0 | 触ってみよう | edit → add → commit |
| 1 | コミットは記録 | コミットの積み重ね |
| 2 | ブランチを切る理由 | feature branch |
| 3 | push と pull | ローカルとリモート |
| 4 | プルリクエスト | PR作成と説明 |
| 5 | レビューとCIとマージ | 運用の一連フロー |
make build # Build
make run # Run
make test # Test
make lint # Lint
make clean # Clean- Go
- Bubble Tea - TUI framework (Elm Architecture)
- Lip Gloss - Terminal styling
- Bubbles - TUI components
MIT