cmcculloh/GitScripts — Issue #37: Using "new" for branches that already exist on the remote errors out
Author: cmcculloh
Created: 2012-01-16 19:13:53+00:00
State: open

If you do not have a local copy of a branch and you try and create that branch using the "new" command, it aborts because the branch already exists. Instead of aborting, perhaps it should just warn you, or else prompt you if you want to continue.

$ new testbranch

Branch `testbranch` already exists! Aborting...

cdm@9826-CDM2 Mon Jan 16 14:07:07 /d/workspaces/helios_workspace/flgitscripts/gitscripts
master
$ branch

------------------------------------------------------------------------------------
Please make a selection (or press Enter to abort)
------------------------------------------------------------------------------------
1: master
2: origin/2011-12-24---fix-bugs-on-unix-os-x
3: origin/change-tortoise-merge
4: origin/cmcculloh
5: origin/cmcculloh-checkout-mods
6: origin/csc---delete-script-erroneously-not-prompting-to-force-delete
7: origin/csmola---activate-config-colors-for-overrides
8: origin/csmola---add-config-colors-to-colors.cfg
9: origin/csmola---add-fetch-and-checkout-option