Thread (9 messages) flat view 9 messages, 7 authors, 2016-06-15

Re: 'git branch' when origin branch with same name exists

From: Philippe Vaucher <hidden>
Date: 2016-06-15 22:54:08

quoted
This very much violates the distributed nature of Git. Everything
is allowed, because it's *my* repository.

It is certainly allowed, as originally mentioned, with a --force option of some kind.

It is only prevented by default because it is likely you are making a mistake...

I second that, way more often than not it *is* a mistake to create a
branch with the same name as one in a remote. In the unlikely scenario
where it is what you want, I think asking for a -f/--force is not too
much.

I think the feature request is in sync with "git branch -d" refusing
to delete an unmerged branch because it's unlikely that it's what you
want, and forces you to use -D instead.

Philippe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help