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

configure git to not push all remote tracking branches

From
JJJustin Johnson <justin.johnson3@gmail.com>
Date
Dec 9, 2011, 15:00 UTC
Message-ID
<CAPD5EOjsu-9=CCUJut_bGqv=asp8FeGqL2GhKewgw3SQsArk_A@mail.gmail.com>

Hi, I'm looking for some help with pushing to remote repositories. I accidentally left out the refspec from my git push command and git pushed all branches that are set up to track the remote repo that I specified. I would like to disable this, and enforce specifying a refspec. Is there a way to do this? e.g. git push alternateorigin should not do anything, but git push alternateorigin mybranch should push just mybranch. -- Justin Johnson

Next: Ramkumar Ramachandra
Message 1 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.