Re: 'git branch' when origin branch with same name exists
- From
- Michael Schubert <mschub@elegosoft.com>
- Date
- Jun 19, 2012, 15:35 UTC
- Message-ID
- <4FE09C39.50702@elegosoft.com>
- In-Reply-To
- <4FE091FB.7020202@desrt.ca>
On 06/19/2012 04:51 PM, Ryan Lortie wrote:
Show 16 quoted lines
> So feature request: 'git branch' should not allow creating a local > branch that has the same name as a branch that already exists on > 'origin' (or any remote?) without some sort of --force flag. It could > instead helpfully say: > > """ > > The branch you are trying to create already exists on the origin. > Are you sure you don't want to checkout this branch using > 'git checkout gtk-3-4' > > """ > > or something like that. > > Thoughts?
This very much violates the distributed nature of Git. Everything is allowed, because it's *my* repository.