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

git push --no-mirror ?

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Mar 8, 2010, 12:34 UTC
Message-ID
<20100308123423.GA20486@neumann>
Hi,

I have a remote that I use mainly for backup with 'mirror = true' in gitconfig, but also for sharing my "bleeding-edge" code with a student. Now I came across the situation where I would liked to push only a single branch to that repo, only to discover that 'git push' has no '--no-mirror' option to override the related configuration setting. Removing the 'mirror = true' line from the config, doing the push, restoring the config did the trick, of course, but I think there should be a simpler way to do that. Is there a fundamental reason why there is no 'push --no-mirror', or just noone has noticed/bothered before?

Thanks, Gábor

Next: Junio C Hamano
Message 1 of 3 in “git push --no-mirror ?”
  1. SZEDER GáborMar 8, 2010
  2. Junio C HamanoMar 8, 2010
  3. SZEDER GáborMar 9, 2010

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.