Git development
 help / color / mirror / Atom feed
* Adding a new option to git-push: --(no-)create-branch
@ 2012-04-18 22:03 Rob Hoelz
  2012-04-19  0:46 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Hoelz @ 2012-04-18 22:03 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Adding a new option to git-push: --(no-)create-branch
  2012-04-18 22:03 Adding a new option to git-push: --(no-)create-branch Rob Hoelz
@ 2012-04-19  0:46 ` Junio C Hamano
  2012-04-19  6:40   ` Rob Hoelz
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2012-04-19  0:46 UTC (permalink / raw)
  To: Rob Hoelz; +Cc: git

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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Adding a new option to git-push: --(no-)create-branch
  2012-04-19  0:46 ` Junio C Hamano
@ 2012-04-19  6:40   ` Rob Hoelz
  0 siblings, 0 replies; 3+ messages in thread
From: Rob Hoelz @ 2012-04-19  6:40 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 345 bytes --]

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


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-19  6:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-18 22:03 Adding a new option to git-push: --(no-)create-branch Rob Hoelz
2012-04-19  0:46 ` Junio C Hamano
2012-04-19  6:40   ` Rob Hoelz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox