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

Re: git remote rm non-existant-remote

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Jun 28, 2009, 23:04 UTC
Message-ID
<C1DD7597-AAFF-4F79-B11C-4D6BE9EB2601@silverinsanity.com>
In-Reply-To
<20090628161141.GA7796@sigio.peff.net>
On Jun 28, 2009, at 12:11 PM, Jeff King wrote:
Show 15 quoted lines
> On Sun, Jun 28, 2009 at 10:47:23AM -0400, Brian Gernhardt wrote:
>
>> I was working on updating the remotes for one of my repositories
>> (adding a variety of forks) and renamed the origin branch.  When I
>> was done, I tried to use "git remote rm origin" to remove the
>> branches for the now dead origin.  What git-remote did was remove all
>> of my remotes and the merge information for my master branch (which
>> was moved off the origin remote).
>>
>> This is a data loss bug.  Very bad.  `git remote rm` should either
>> refuse to remove a non-existent remote or (preferably) simply remove
>> any branches that exist for that remote.
>
> Ouch. That is indeed a serious bug. However, I can't reproduce with
> current 'next'; which version of git are you using?
git version 1.6.3.3.467.g98a79
I believe that's the latest "next".
~~ Brian
Previous: Jeff KingNext: Jeff King
Message 3 of 4 in “git remote rm non-existant-remote”
  1. Brian GernhardtJun 28, 2009
  2. Jeff KingJun 28, 2009
  3. Brian GernhardtJun 28, 2009
  4. Jeff KingJun 29, 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.