I am programming. I add beautiful code and commit and push it to my repo like:
git add *
git commit
//writes message
git push unfuddle master
Now i go in and screw everything up. I have not issued a git command since I push the beauty. How do i make my local files go back to what was committed?
git pull says my local repo is “up to date”
git checkout spams out my screen and doesnt seem to change anything.
To be clear: I am not trying to modify my remote repo, just get my local repo to look like the server.
My current solution is to delete the folder and reclone the repo. That can’t be right.
You can reset to HEAD:
git reset --hard HEAD