DEV Community

Adam Aslan
Adam Aslan

Posted on

Remote Repo Troubleshooting: Incorrect Remote Repo Name - Dont Use Remove or Rename

Woops you are trying to create a new repo for a new project running locally on your machine and you somehow added the wrong git repo name.

Before you try git rename or git delete, just delete the entire git folder locally and create a new git folder from scratch.

Then go thru the normal processes.

This seems smart to me as most people add a remote repo pretty immediately so version control, commits, and other concerns wont be affected by deleting the git folder.

Top comments (1)

Collapse
 
adamaslan profile image
Adam Aslan

Does anyone have any objections to this?