sincecutoff.com
← all changes

glab mr checkout accepts --worktree

Introduced 2026-10-20 · score 0.94

HOW TO USE IT

When checking out a merge request in a separate worktree, run `glab mr checkout` with the merge request ID and `--worktree <path>`. The worktree path is where glab checks out the merge request; rerunning with that path updates the existing worktree. [Official command documentation](https://docs.gitlab.com/cli/mr/checkout/)

glab mr checkout <id> --worktree <path>

WHY THIS HELPS

Check out a merge request in a separate worktree for repository development.

REQUIREMENTS AND LIMITATIONS

  • Version: v1.124.0
  • <id> | <branch> | <url>: Select the merge request to check out; the documented synopsis marks this argument optional.
  • --worktree <path> (required): Check out the merge request into a Git worktree at the specified path; rerunning updates the existing worktree there.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card