From: Eric Hanchrow Date: Mon, 05 May 2008 16:03:06 GMT Subject: Re: git checkout -b -f v1.5.5.1 Message-ID: <87zlr468n9.fsf@offby1.atm01.sea.blarg.net> In-Reply-To: Hi, all I just mistaken 'git checkout -b 1.5.5.1 v1.5.5.1' to 'git checkout -b -f v1.5.5.1', and I don't how to delete it , 537 git-branch -D -f 538 git-branch -D \-f 539 git-branch -D "\-f" all the above operations were failed. :( PS: Would it be better if we do checking on branch name to avoid this case? You could probably just rm .git/refs/heads/-f and if necessary, replace the content of .git/HEAD with something else. -- FIXME if it is wrong. -- _ / ) (\__/) ( ( ) ( ) ) ={ }= / / ) `-------/ / ( / \ ) ,'\ , ,' `-'\ ,---\ | \ _) ) `. \ / (__/ ) ) hjw (_/