1 min read

Git/github things I keep googling

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