Modifying Remote Origins
If a remote origin has changed or is no longer active, you can remove it with
git remote. You can also use this to add or change remote origins.
# change remote origin url git remote set-url origin [origin-url] # remove remote origin git remote rm [origin-name] # add new remote origin git remote add -t [branch] [origin] [origin-url] git remote set-url --push [origin] no_push