{"thread":{"id":"60938","subject":"Question about migrating a repository","startedAt":"2024-02-16T19:34:55Z","lastAt":"2024-02-17T01:22:52Z","messageCount":3,"participants":["Gabor Urban","Kristoffer Haugsbakk","Chris Torek"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"488806","messageId":"CAL=1hhwreG_W_Ch-B5DXioqjUsfkgjayNZbkCk7uOv3vc=TBSQ@mail.gmail.com","threadId":"60938","inReplyTo":null,"subject":"Question about migrating a repository","fromName":"Gabor Urban","fromEmail":"urbangabo@gmail.com","sentAt":"2024-02-16T19:34:39Z","receivedAt":"2024-02-16T19:34:55Z","isPatch":false,"sender":{"key":"urbangabo@gmail.com","avatar":null},"body":"Hi guys,\n\nI need a bit help.\n\nI have migrated my git repository from my old computer using a bundle.\n(The repo was local with no clones.) That computer will be dismantled\nand thrown away.\n\nI checked and verything is working fine till I get a git status\nreport. The most relevant part is:\n\nOn branch master\nYour branch is up to date with 'origin/master'.\n\nI would like to make THIS repository to be the \"origin\". (The other\nwill be destroyed.) How could I do that?\n\nThanks for any help in advance,\n\n\n-- \nUrbán Gábor\n\nLinux is like a wigwam: no Gates, no Windows and an Apache inside.\n"},{"id":"488807","messageId":"6965c59e-8edd-4d91-81da-3600a61569a3@app.fastmail.com","threadId":"60938","inReplyTo":"CAL=1hhwreG_W_Ch-B5DXioqjUsfkgjayNZbkCk7uOv3vc=TBSQ@mail.gmail.com","subject":"Re: Question about migrating a repository","fromName":"Kristoffer Haugsbakk","fromEmail":"code@khaugsbakk.name","sentAt":"2024-02-16T19:46:11Z","receivedAt":"2024-02-16T19:46:47Z","isPatch":false,"sender":{"key":"code@khaugsbakk.name","avatar":"https://avatars.githubusercontent.com/u/2229597?v=4"},"body":"On Fri, Feb 16, 2024, at 20:34, Gabor Urban wrote:\n> Hi guys,\n>\n> I need a bit help.\n>\n> I have migrated my git repository from my old computer using a bundle.\n> (The repo was local with no clones.) That computer will be dismantled\n> and thrown away.\n>\n> I checked and verything is working fine till I get a git status\n> report. The most relevant part is:\n>\n> On branch master\n> Your branch is up to date with 'origin/master'.\n>\n> I would like to make THIS repository to be the \"origin\". (The other\n> will be destroyed.) How could I do that?\n>\n> Thanks for any help in advance,\n\n`origin/master` is a “remote-tracking branch”. It points to `master` on\nthe `origin` remote. Or to be precise: it points to a ref that you use\nto track this branch from that remote. A remote is some other repository\nthat you have a link to, like a URL.\n\nThat ref (reference) was updated with a command like `git fetch`.\n\nYou can get the link to that remote with\n\n```\ngit remote get-url origin\n```\n\nYour own local repository is never a remote like `origin`. You don’t\nhave to make your own repository into a remote.\n\nYour repository is fine. There’s nothing that you need to do.\n\n>\n>\n> --\n> Urbán Gábor\n>\n> Linux is like a wigwam: no Gates, no Windows and an Apache inside.\n\n-- \nKristoffer Haugsbakk\n"},{"id":"488835","messageId":"CAPx1GvfVNOeMSJMFgJfGUA9MNBAyuvpwpKfX0ZH0JTJPwuxYnA@mail.gmail.com","threadId":"60938","inReplyTo":"6965c59e-8edd-4d91-81da-3600a61569a3@app.fastmail.com","subject":"Re: Question about migrating a repository","fromName":"Chris Torek","fromEmail":"chris.torek@gmail.com","sentAt":"2024-02-17T01:22:39Z","receivedAt":"2024-02-17T01:22:52Z","isPatch":false,"sender":{"key":"chris.torek@gmail.com","avatar":"https://avatars.githubusercontent.com/u/16826774?v=4"},"body":"On Fri, Feb 16, 2024 at 11:47 AM Kristoffer Haugsbakk\n<code@khaugsbakk.name> wrote:\n> Your repository is fine. There’s nothing that you need to do.\n\nThis is correct, but, if you'd like to make your local Git stop\nmentioning `origin`\nentirely, you can simply run:\n\n    git remote remove origin\n\nwhich will cause your (new) local Git repository to forget that it got\ncopied from\nsomewhere else.\n\nYou can shorten the word `remove` to just `rm` (as in the Linux/Unix\n\"remove file\" command).\n\nChris\n"}]}