I want to get the current head of m开发者_JAVA百科y git repo destroying all changes made and erasing additional files in the working copy.
I think that you are looking for something like this. Be careful! This potentially erases things that you cannot get back.
git reset --hard
git clean -fx
精彩评论