RE: Git checkout multiple options issue

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

 



Thanks for answer,

git checkout -f -b "branch_name"
gives me " Fatal: A branch named 'branch_name' already exists."

I understand that here the checkout is force, but not the branch creation.
The opposite option order doesn't work:

git checkout -b -f "branch_name"
gives me "Fatal:  '-f' is not a valid branch name."

Once again sorry if this is expected behavior.

[For clarity, I'm trying to move a branch and checkout it with one command.]

Regards,
Joris


-----Message d'origine-----
De : Randall S. Becker <rsbecker@xxxxxxxxxxxxx>
Envoyé : lundi 28 janvier 2019 15:12
À : COLLOMB Joris -EXT <joris.collomb-ext@xxxxxxxxxxxxxxx>; git@xxxxxxxxxxxxxxx
Objet : RE: Git checkout multiple options issue

On January 28, 2019 8:25, COLLOMB Joris wrote:
> git checkout -fb "branch_name"
> (force branch creation and checkout it)
>
> doesn't work (even if option a separated).
>
> I don't know if this is consider as an issue, but here it is.

I think you might mean (which works on every platform I have):

git checkout -f -b "branch_name"

There is no provision for aggregating options into one. -fb (invalid) is not the same as -f -b (valid).

Regards,
Randall

-- Brief whoami:
 NonStop developer since approximately 211288444200000000  UNIX developer since approximately 421664400
-- In my real life, I talk too much.





________________________________
CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.




[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