sajad torkamani


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.


gh browse

And the new repo URL should be opened in your default browser.

Tagged: Git

Leave a comment

Your email address will not be published. Required fields are marked *