Update the origin remote
origin is the conventional name for the remote repository from which a project was cloned. Inspect it before changing it:
Change the existing URL
For example:
Confirm the result:
Add origin when it does not exist
Check the destination
git push sends commits to the configured remote. Run git remote -v before pushing after changing origin, especially when moving a project or switching between personal and organization repositories.