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

Re: [PATCH] Include a git-push example for creating a remote branch

From
Wincent Colaiuta <win@wincent.com>
Date
Sep 6, 2007, 10:50 UTC
Message-ID
<A3C344D0-B2A0-44DC-BCBD-3B2C1EBD24B1@wincent.com>
In-Reply-To
<20070906044408.GA588@spearce.org>
El 6/9/2007, a las 6:44, Shawn O. Pearce escribió:
Show 6 quoted lines
> +git push origin master:refs/heads/experimental::
> +	Create the branch `experimental` in the `origin` repository
> +	by copying the current `master` branch.  This form is usually
> +	needed to create a new branch in the remote repository as
> +	there is no `experimental` branch to match.
> +

A welcome addition; I was puzzled the first time I tried this myself too.

Cheers, Wincent

Previous: Junio C HamanoNext: Kristian Høgsberg
Message 8 of 9 in “Include a git-push example for creating a remote branch”
  1. Include a git-push example for creating a remote branchShawn O. Pearce, Sep 6, 2007
  2. Miles BaderSep 6, 2007
  3. Shawn O. PearceSep 6, 2007
  4. Miles BaderSep 6, 2007
  5. Junio C HamanoSep 6, 2007
  6. Carl WorthSep 6, 2007
  7. Junio C HamanoSep 6, 2007
  8. Wincent ColaiutaSep 6, 2007
  9. Kristian HøgsbergSep 6, 2007

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.