当前位置:   article > 正文

Git提示Please move or remove them before you switch branches.

please move or remove them before you

1 问题

git checkout V1

提示错误如下

  1. error: The following untracked working tree files would be overwritten by checkout:
  2. flutter_module/pubspec.lock
  3. Please move or remove them before you switch branches.
  4. Aborting

 

 

 

 

 

 

 

2 解决办法

git clean -df ../flutter_module/pubspec.lock

然后再

git checkout V1

 

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

闽ICP备14008679号