Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions git-co
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ co() {
# Try to create from origin first
if git rev-parse --verify "origin/$1" >/dev/null 2>&1; then
git switch -c "$1" "origin/$1"
git pull --all
else
# Branch doesn't exist, try to find similar branches
local similar_branches
Expand All @@ -165,7 +164,6 @@ co() {
git switch "$branch_name"
elif git rev-parse --verify "origin/$branch_name" >/dev/null 2>&1; then
git switch -c "$branch_name" "origin/$branch_name"
git pull --all
fi
else
echo "Branch '$1' not found. Did you mean one of these?"
Expand All @@ -182,7 +180,6 @@ co() {
git switch "$branch_name"
elif git rev-parse --verify "origin/$branch_name" >/dev/null 2>&1; then
git switch -c "$branch_name" "origin/$branch_name"
git pull --all
fi
fi
fi
Expand Down
Loading