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

Re: Question about migrating a repository

From
Kristoffer Haugsbakk <code@khaugsbakk.name>
Date
Feb 16, 2024, 19:46 UTC
Message-ID
<6965c59e-8edd-4d91-81da-3600a61569a3@app.fastmail.com>
In-Reply-To
<CAL=1hhwreG_W_Ch-B5DXioqjUsfkgjayNZbkCk7uOv3vc=TBSQ@mail.gmail.com>
On Fri, Feb 16, 2024, at 20:34, Gabor Urban wrote:
Show 18 quoted lines
> Hi guys,
>
> I need a bit help.
>
> I have migrated my git repository from my old computer using a bundle.
> (The repo was local with no clones.) That computer will be dismantled
> and thrown away.
>
> I checked and verything is working fine till I get a git status
> report. The most relevant part is:
>
> On branch master
> Your branch is up to date with 'origin/master'.
>
> I would like to make THIS repository to be the "origin". (The other
> will be destroyed.) How could I do that?
>
> Thanks for any help in advance,

`origin/master` is a “remote-tracking branch”. It points to `master` on the `origin` remote. Or to be precise: it points to a ref that you use to track this branch from that remote. A remote is some other repository that you have a link to, like a URL.

That ref (reference) was updated with a command like `git fetch`.
You can get the link to that remote with

``` git remote get-url origin ```

Your own local repository is never a remote like `origin`. You don’t have to make your own repository into a remote.

Your repository is fine. There’s nothing that you need to do.
Show 6 quoted lines
>
>
> --
> Urbán Gábor
>
> Linux is like a wigwam: no Gates, no Windows and an Apache inside.
-- 
Kristoffer Haugsbakk
Previous: Gabor UrbanNext: Chris Torek
Message 2 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.