xxxxxxxxxx
git remote remove origin
Instead if removing and re-adding origin you can change origin with
xxxxxxxxxx
git remote set-url origin git://new.url.here
alternatively to remove origin you can just
xxxxxxxxxx
git remote remove origin
xxxxxxxxxx
git remote remove name // name is remote name you want to remove
git remote -v // to list all remote origins
git remote add origin (url) // to add origin