How to change origin remote
git remote set-url origin git://new.url.here
Git discard uncommited changes
For unstaged changes git checkout -- .
For staged and unstaged git reset --hard
git remote set-url origin git://new.url.here
For unstaged changes git checkout -- .
For staged and unstaged git reset --hard