Git repo name update

I just changed the name of my github repository and now my local repo (as expected) cannot find it. How to update a name, or should I just consider it as a new remote repo?

+6
source share
1 answer

From how I read this, I understand that you have changed the name of your repository (which changed the URL for it), and now you want to update the URL so that it matches the new location of the repository.

You can use git remote set-url <remote-name> <new-url> to switch the URL of an existing remote repo.

+11
source

Source: https://habr.com/ru/post/914645/


All Articles