When trying to do a git pull I get "You have unstaged changes.". When I do a git status it says: nothing to commit (working directory clean). Why?
I can do a git reset --hard, then pull, but I don't understand why pull fails in the first time.
解决方案
As @J-16 SDiZ said, do a git status. I find a common problem is that people delete a file from their project without deleting it from git with git rm. So git status can give you a list of such files, and if it does, go ahead and just do:
git rm
for each such file.
Then commit your changes and try again.

被折叠的 条评论
为什么被折叠?



