Originally Posted by eagleeyetom
To discard all unstaged changes e.g. failed merge etc. type:
git checkout .
# to delete all changes
git checkout path/to/file
# to discard changes for a specific file
I found it better to use "git reset --hard" if you want to reset the current git project completely, more often you might have extra files lurking around so in a dirty way you could do
rm -rf ./
git reset --hard
Thanks for a refreshing course in git
Originally Posted by Prawesome
Tom,there's another way of force push,atleadt that's what I know..
git push -u origin +branchtopushto
Afaik, -u is only used to set the upstream/remote repository to push/pull from.