Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-hykin committed May 29, 2023
1 parent 3d19f6a commit f95c2df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion settings/during_start/094_000_jeffs_git_shortcuts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,9 @@ git_push_all_branches_to_url () {
branch_name=${branch#*/}

# Checkout each branch
git checkout -b "$branch_name" "$branch" || git checkout "$branch_name"
if ! git checkout -b "$branch_name" "$branch" || git checkout "$branch_name"; then
break
fi

# Push the rewritten branch to the target repository
if ! git push "$temp_remote_name" "$branch_name"; then
Expand Down

0 comments on commit f95c2df

Please sign in to comment.