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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store