We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee3e5b7 commit 73ae105Copy full SHA for 73ae105
zsh-fzf-git-worktree.zsh
@@ -115,6 +115,7 @@ HEREDOC
115
echo "Creating worktree from remote branch: $REMOTE_BRANCH"
116
if git worktree add "../$NAME" "$REMOTE_BRANCH" 2>/dev/null; then
117
NEW_DIR=${CWD_PARENT}/${NAME}
118
+ git -C "$NEW_DIR" switch "$NAME"
119
else
120
echo "Failed to create worktree from remote branch"
121
return 1
0 commit comments