Git does not apply deleted files when merging an old branch into the master. How can I tell Git to apply deleted files?

前端 未结 4 835
小鲜肉
小鲜肉 2021-01-02 03:42

I have a master and a dev branch. I made commits in both. I also deleted some files in dev. I made other commit in master, so this master branch is more recent.

My i

4条回答
  •  臣服心动
    2021-01-02 04:15

    I had the same problem. In my case I think the problem was that, when I did the merge, my copy of the merged-from branch was outdated compared to the remote. (a colleague had done the deletion, not me)

    In any case, what fixed it was deleting the whole working copy and cloning it anew.

提交回复
热议问题