丢弃代码失败,改用reset以后还是失败
$ git reset --hard HEAD
fatal: Unable to create 'C:/popo_build/winpopo/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
到.git目录下找到.lock文件,把它删掉就好了