How to switch remote in terminal code example Example: git update upstream url git remote set-url upstream https://hostname/USERNAME/REPOSITORY.git