git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Rob Hoelz <rob@hoelz.ro>
Date
Apr 18, 2012, 22:03 UTC
Message-ID
<4F8F3A25.1080407@hoelz.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

Next: Junio C Hamano
Message 1 of 3 in “Adding a new option to git-push: --(no-)create-branch”
  1. Rob HoelzApr 18, 2012
  2. Junio C HamanoApr 19, 2012
  3. Rob HoelzApr 19, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.