Topic
git
2 posts · 2 articles
Articles

FixJun 4, 2026·3 min
Stop AI agents committing to main: a 2-line git hook
Branch protection blocks the push, not the local commit. A pre-commit hook stops any agent from landing work on main, with a one-line escape.

TutorialMay 24, 2026·4 min
Run two Claude Code sessions in one repo with worktrees
Claude Code has a native -w flag for git worktrees. Run a refactor and a feature in parallel, each in its own files, with no merge pain.