- Update name in repository settings on Github.
- In local git repository, run
git remote set-url origin [email protected]:github-user-name/new-repository-name.git
- Verify changes:
git remote -v
=>
origin [email protected]:github-user-name/new-repository-name.git (fetch)
origin [email protected]:github-user-name/new-repository-name.git (push)