git reset --hard 将会删除你所有的本地更改,但请确保在运行之前没有你想要保留的更改。
git reset --hard
一种更安全的方法可能是:
git stash
然后你就可以继续进行完整的命令行重建。