Skip to main content

Stash / Worktree

git stash

git worktree

git gitkraken use

add new worktree

git worktree add <path> <branch>

  • --force force creating a new worktree (e.g. create new worktree with already checked out branch)

list worktrees

git worktree list

remove unused worktree

git worktree remove [-f] <worktree>

  • Unclean worktrees or ones with submodules can be removed with --force or -f.