The following untracked working tree files would be overwritten by merge, but I don't care

前端 未结 16 1137
挽巷
挽巷 2020-12-02 03:37

On my branch I had some files in .gitignore

On a different branch those files are not.

I want to merge the different branch into mine, and I don\'t care if t

16条回答
  •  甜味超标
    2020-12-02 04:04

    The problem is that you are not tracking the files locally but identical files are tracked remotely so in order to "pull" your system would be forced to overwrite the local files which are not version controlled.

    Try running

    git add * 
    git stash
    git pull
    

    This will track all files, remove all of your local changes to those files, and then get the files from the server.

提交回复
热议问题