Skip to content

Commit

Permalink
git-worktree: handle upstream force push
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenithalHourlyRate committed Apr 11, 2023
1 parent 40c1711 commit 50718ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-worktree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function checkout_branch() {
$git_option clone "$repo_dir" --branch "$branch" --single-branch "$work_tree"
else
cd "$work_tree"
$git_option pull
$git_option checkout -B "$branch" "origin/$branch"
fi
}

Expand Down

0 comments on commit 50718ec

Please sign in to comment.