Can't do a git pull

后端 未结 5 1139
再見小時候
再見小時候 2021-01-31 07:11

I\'m trying to do a git pull and get the error message:

error: The following untracked working tree files would be overwritten by merge:


        
5条回答
  •  遥遥无期
    2021-01-31 08:00

    I agree with other posters, the issue is that the file isn't being tracked by git. the command git rm works on files being tracked. rm will remove the file from your machine. Alternatively you could add the file to your list of ignored files, or file types if that is convenient. You could also use one of the GUI tools like tortoise git to quickly delete all untracked files.

提交回复
热议问题