Can't do a git pull

后端 未结 5 1138
再見小時候
再見小時候 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 07:49

    This is an opportunity for the 'git clean' command. If you don't care about the untracked files ... git clean -n to see what will be removed, and git clean -f to go ahead and rm untracked files.

    Add -d to the commands to also operate on directories:

      git clean -dn
      git clean -df
    

提交回复
热议问题