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