git how to remove worktree code example Example: git worktree remove $ git worktree remove ../path-to-folder