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

Re: pushing specific branches to a public mirror repos

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Jul 17, 2009, 08:51 UTC
Message-ID
<4A603B7A.6050208@viscovery.net>
In-Reply-To
<h3pcrg$ekk$1@ger.gmane.org>
Graeme Geldenhuys schrieb:
Show 10 quoted lines
> I currently have the following git config setting for the remote github
> repository:
> 
> [remote "github"]
>     url = git@github.com:graemeg/freepascal.git
>     push = +refs/remotes/*:refs/heads/*
> 
> I only want to push the "trunk" and "fixes_2_2" SubVersion branches to
> GitHub as heads. How must I change by remote.github.push config setting,
> or must I do a manual push as I do with the local tracking "master" branch.
You can have more than one push line in the config:
    push = +refs/remotes/trunk:refs/heads/trunk
    push = +refs/remotes/fixes_2_2:refs/heads/fixes_2_2
-- Hannes
Previous: Graeme GeldenhuysNext: Graeme Geldenhuys
Message 2 of 5 in “pushing specific branches to a public mirror repos”
  1. Graeme GeldenhuysJul 17, 2009
  2. Johannes SixtJul 17, 2009
  3. Graeme GeldenhuysJul 17, 2009
  4. Bert WesargJul 17, 2009
  5. Johannes SixtJul 17, 2009

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.