Re: git checkout -b -f v1.5.5.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

>      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 ,

Try
  git branch -D -- -f

>   537  git-branch -D -f
>   538  git-branch -D \-f
>   539  git-branch -D "\-f"
> 
>      all the above operations were failed. :(

In all cases, git-branch gets -f as parameter, because your shell "expands"
them to -f.

> PS: Would it be better if we do checking on branch name to avoid this case?

What do you want to check for?
No leading dashes?

-- 
Stephan Beyer <s-beyer@xxxxxxx>, PGP 0x6EDDD207FCC5040F

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux