Git/Github repository deleted, but…?

Hey people,

I've recently been working on git/github in connection with visual studio code.

As a test, I created a repo on Github, opened a folder in VS Code, and then linked it to the repo using source control. I then deleted the repo on Github, but then wanted to link the folder in question on VS Code to a new repo I created, but now I'm running into a problem.

No matter if I do Git: close repo or git: delete remote tag, the following error appears: Git: remote: Repository not found (which is logical because I deleted it on github)
However, how can I connect my folder to a new repo? or make VS Code aware that the old repo has been deleted.

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
1 Answer
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
jort93
1 year ago

You need to change the remote original, I think that’s what you mean.

git remote set-url origin https://github.com/dein-repo.git

Alternatively, you clone the new repo and copy it all over.