You can update the remote connection between a git repo and GitHub simply.
Check the current remote type.
```bash
git remote -v
```
If the remote starts with `https://` it is an HTTPS type remote. If it begins with `
[email protected]` it is an SSH type remote.
To update, navigate to the repo on GitHub.com and copy the SSH URI (click the green **Code** button and copy the address under the SSH tab). Then update the remote in your local repository.
```bash
git remote set-url origin <ssh-uri>
```
> [!tip]- Additional Resources
> - [Managing remote repositories](https://docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories) on GitHub Docs