Rename Git repo locally and on remote
1 June 2022 (Updated 1 June 2022)
On this page
Rename
Make sure you have the GitHub CLI installed, then run:
gh repo rename <new-name>
Confirm rename was successful
Once done, the remote GitHub repo will update as well as your local .git/config
. Confirm with:
git remote -v
You should see the new remote name.
Run:
gh browse
And the new repo URL should be opened in your default browser.
Tagged:
Git
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment