JAEN

Git

git worktree

SafeMultiple working trees

git worktree add <path> <branch>

Check out several branches side by side — handle an urgent fix without stashing your work.

Examples

  • git worktree add ../hotfix hotfix/crashOpen a hotfix tree

Syntax

git worktree [add|list|remove] <path> [branch]

Before you run it

Clean up with worktree remove.

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store