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

Re: configure git to not push all remote tracking branches

From
JJJustin Johnson <justin.johnson3@gmail.com>
Date
Dec 9, 2011, 15:07 UTC
Message-ID
<CAPD5EOgeKpV1bWJZmdUR6ZQuA=objSAApVrz1W9W8C_ij+XN9A@mail.gmail.com>
In-Reply-To
<CALkWK0m0f-AGLwKqiKx9Aozwr5oN6FrH5ehG03mmEpB7Di8PWQ@mail.gmail.com>

On Fri, Dec 9, 2011 at 10:03 AM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:

Show 14 quoted lines
> Hi Justin,
>
> Justin Johnson wrote:
>> git push alternateorigin
>> should not do anything, but
>> git push alternateorigin mybranch
>> should push just mybranch.
>
> $ git config push.default nothing
> Note: push.default defaults to "matching"
>
> Cheers.
>
> -- Ram

Thank you, that's exactly it. I saw it in the docs for git-config but wasn't positive that's what I needed.

--Justin
Previous: Ramkumar Ramachandra
Message 3 of 3 in “configure git to not push all remote tracking branches”
  1. Justin JohnsonDec 9, 2011
  2. Ramkumar RamachandraDec 9, 2011
  3. Justin JohnsonDec 9, 2011

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.