git remote set-url origin https://github.com/user/repo.git
Category: Git - Core
git remote set-url origin https://github.com/user/repo.git
Change the URL of an existing remote
Updates the URL of an existing remote — useful when a repository is moved.