简体   繁体   中英

Updating git repo name

I just changed the name of my github repo and now my local repo (as expected) can't find it. How do I update the name, or am I just supposed to treat it as a new remote repo?

From how I read this my understanding is that you changed the name of your repository (which changed the URL for it) and now you want to update the URL to match the new repository location.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM