当前位置:   article > 正文

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

worktree clean would be overwritten by checkout

  ui/test.py

Please move or remove them before you switch branches.
Aborting

切换分支时,报错这个,那么如何解决呢?

  1. git clean -dfx ui/test.py //这样一个一个把上面列出的文件去掉
  2. git clean -dfx //这样也是可以的

然后执行git checkout -B 分支名称 origin/分支名称就可以切换成功啦

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/688789
推荐阅读
相关标签
  

闽ICP备14008679号