switch origin github code example
Example 1: git overwrite urlk
# Overwriting an existing git url:
git remote set-url origin <git_url>
Example 2: git set remote origin url
git remote set-url origin new.git.url/here
# Overwriting an existing git url:
git remote set-url origin <git_url>
git remote set-url origin new.git.url/here