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

迈不过友情╰ 2021-09-24 12:24 1189阅读 0赞

1 问题

  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 解决办法

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

然后再

  1. git checkout V1

#

发表评论

表情:
评论列表 (有 0 条评论,1189人围观)

还没有评论,来说两句吧...

相关阅读