Without modifying too much stuff, I am wondering how I can rename the repository name? Say, from foo
to bar
?
Any command to achieve this?
Settings
, from the github page for your repository.Rename
.Keep in mind that renaming doesn't preserve any links or redirects; so people going to your old repository link will get the famous 404 page of github.
In addition, you will still have to rename your local copy of the repository. Type git remote -v
to see all the remotes for your local copy and then git remote set-url <name> <new-url>
to update the links.
If you just want to discard you local copy and start fresh, simply re-clone it from github using the new URL.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With