# Adding a new option to git-push: --(no-)create-branch

3 messages from 2012-04-18 to 2012-04-19. Participants: Rob Hoelz, Junio C Hamano.
Thread: https://gitlist.dev/t/30281

## Rob Hoelz, 2012-04-18 22:03

Subject: Adding a new option to git-push: --(no-)create-branch
Message-ID: <4F8F3A25.1080407@hoelz.ro>
URL: https://gitlist.dev/e/4F8F3A25.1080407%40hoelz.ro

```
Hello Git developers and users,

When I use Git, I tend to specify my branches explicitly.  For example:

git push origin master:master

However, I will often make a typo like this:

git push origin master:msater

I was thinking that it would be nice for git to support a new 
option/config value: --no-create-branch (push.createbranch).  This 
configuration variable
would forbid git from creating new remote branches, unless overriden 
with --create-branch.

Does anyone think this would be worth implementing?  I'd like to take 
the pulse of the community before I start making any modifications.

Thanks,
Rob Hoelz

```

## Junio C Hamano, 2012-04-19 00:46

Subject: Re: Adding a new option to git-push: --(no-)create-branch
Message-ID: <7vk41cim4i.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vk41cim4i.fsf%40alter.siamese.dyndns.org
In-Reply-To: <4F8F3A25.1080407@hoelz.ro>

```
Rob Hoelz <rob@hoelz.ro> writes:

> However, I will often make a typo like this:
>
> git push origin master:msater

Why isn't "git push origin master" explicit enough?

```

## Rob Hoelz, 2012-04-19 06:40

Subject: Re: Adding a new option to git-push: --(no-)create-branch
Message-ID: <20120419084056.1a8c1540@hoelz.ro>
URL: https://gitlist.dev/e/20120419084056.1a8c1540%40hoelz.ro
In-Reply-To: <7vk41cim4i.fsf@alter.siamese.dyndns.org>

```
I suppose it would be...I may just need to retrain my fingers! =)

On Wed, 18 Apr 2012 17:46:53 -0700
Junio C Hamano <gitster@pobox.com> wrote:

> Rob Hoelz <rob@hoelz.ro> writes:
> 
> > However, I will often make a typo like this:
> >
> > git push origin master:msater
> 
> Why isn't "git push origin master" explicit enough?
> 


```
