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

Re: Question about migrating a repository

From
Chris Torek <chris.torek@gmail.com>
Date
Feb 17, 2024, 01:22 UTC
Message-ID
<CAPx1GvfVNOeMSJMFgJfGUA9MNBAyuvpwpKfX0ZH0JTJPwuxYnA@mail.gmail.com>
In-Reply-To
<6965c59e-8edd-4d91-81da-3600a61569a3@app.fastmail.com>

On Fri, Feb 16, 2024 at 11:47 AM Kristoffer Haugsbakk <code@khaugsbakk.name> wrote:

> Your repository is fine. There’s nothing that you need to do.

This is correct, but, if you'd like to make your local Git stop mentioning `origin` entirely, you can simply run:

    git remote remove origin

which will cause your (new) local Git repository to forget that it got copied from somewhere else.

You can shorten the word `remove` to just `rm` (as in the Linux/Unix "remove file" command).

Chris
Previous: Kristoffer Haugsbakk
Message 3 of 3 in “Question about migrating a repository”
  1. Gabor UrbanFeb 16, 2024
  2. Kristoffer HaugsbakkFeb 16, 2024
  3. Chris TorekFeb 17, 2024

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.