If you need to discard the changes you made to your local environment, you can pull the remote branch code.
To overwrite the local files from the remote branch:
git fetch --all
git reset --hard origin/master
For more git related screwups, check out https://ohshitgit.com/