Skip to content
mentoor

Git for multi-agent work

For engineers

Branches, worktrees, rebase and recovery when several agents and people commit to one repository at once

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

Why does a second agent need its own worktree and not just its own branch?

Choose one answer

Check yourself · 2 of 5

When is it safe to rebase a branch?

Choose one answer

Check yourself · 3 of 5

What does git bisect run need in order to work without your help?

Choose one answer

Check yourself · 4 of 5

After an agent runs git reset --hard, where do you look first for the lost commits?

Choose one answer

Check yourself · 5 of 5

Several agents edit one working tree. How should you commit your change?

Choose one answer

Topics

  1. Branch and worktree layouts for parallel agents4 min read · One short-lived branch and one worktree per agent task, clear branch names, and why two agents never share a checkout
  2. Rebase, merge and agent conflict resolution5 min read · Choosing rebase or merge, resolving conflicts between two agents' branches, and checking that an agent's conflict resolution kept both changes
  3. Finding the breaking commit with bisect4 min read · Automated git bisect with a test command across a long run of small agent commits
  4. Recovering from destructive git operations5 min read · Reflog, remote refs and backups to undo a hard reset, a bad rebase or a force push, plus branch protection that stops agents doing it again
  5. Many committers in one checkout5 min read · Staging explicit paths, lock files, push races and stray files when several agents and people commit in the same working tree

Start here

110 questions · last verified 2026-12