The following untracked working tree files would be overwritten by checkout:

切换分支的时候,报错The following untracked working tree files would be overwritten by checkout:
工作树中的缓存文件没有清理导致的,大小写改变,因为编辑器不识别大小写,切换分支就会报错
解决办法就是把编辑器设置大小写忽略

git config core.ignorecase true

然后切换分支 切换成功后再改回原配置

git config core.ignorecase false

你可能感兴趣的:(The following untracked working tree files would be overwritten by checkout:)