Git pull: error: Entry foo not uptodate. Cannot merge

后端 未结 11 1963
不思量自难忘°
不思量自难忘° 2020-11-30 20:09

I\'m trying to update my repo from a remote branch and keep getting this error when I do a \"git pull\". I haven\'t made any local changes, and even if I have I don\'t need

11条回答
  •  北海茫月
    2020-11-30 21:00

    I was seeing a similar issue (Windows 10): I was on branchA and wanted to go to master. I had some uncommited changes so first I git stash then git checkout -f master but I still got the Entry 'fileName' not uptodate. Cannot merge.

    git status wasn't showing anything to commit.

    Eventually I just removed the file manually and I was able to go to the other branch (which of course made my file come back) so I guess there has been a bug within git somewhere.

提交回复
热议问题