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

Re: [BUG?] git remote rm repo nukes local refs for mirror repo

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 14, 2008, 09:32 UTC
Message-ID
<alpine.DEB.1.00.0810141131130.22125@pacific.mpi-cbg.de.mpi-cbg.de>
In-Reply-To
<48F460DB.9030209@drmicha.warpmail.net>
Hi,
On Tue, 14 Oct 2008, Michael J Gruber wrote:
Show 7 quoted lines
> I just noticed the hard way that "git remote rm repo" nukes all local 
> (mirrored) refs if repo had been setup with "git remote add --mirror 
> repo url".
>
> Some may argue that this behaviour fits the description "deletes all 
> remote tracking branches" but I would claim it does not: mirrored 
> branches are not remote tracking branches in the proper sense.

Count me into the former group. If you set up a "--mirror" repository, it defeats the purpose to mix that with _true_ local branches.

I'd color this a pilot error, Dscho

Previous: Michael J GruberNext: Samuel Tardieu
Message 2 of 4 in “[BUG?] git remote rm repo nukes local refs for mirror repo”
  1. Michael J GruberOct 14, 2008
  2. Johannes SchindelinOct 14, 2008
  3. Samuel TardieuOct 14, 2008
  4. Michael J GruberOct 14, 2008

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.