$ git remote add origin https://github.com/user/repo.git # Set a new remote $ git remote -v # Verify new remote > origin https://github.com/user/repo.git (fetch) > origin https://github.com/user/repo.git (push)
git remote add origin https://github.com/xxx/xxx-new.git git branch -M main git push -u origin main