With the command below
git remote set-url --push origin <URL-of-me>
git will still default to repo origin
, but when pushing, it will use the URL you've supplied. When pulling/fetching it will still use the URL you cloned from.
But you probably want to push to a test-system by default, and be explicit when pushing to the production server. A cleaner solution for that:
git clone <production-URL>
cd <project>
git remote set-url origin <test-URL>
git remote add production <production-URL>
After this
git push
will push to the test site and
git push production
will push to the production site (the original origin).