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