git remote url change

JavaScript
git remote set-url origin new.git.url/heregit remote add origin [email protected]:portfolio/space.space_name.git$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Source

Also in JavaScript: