分享

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

 陈喻 2021-10-19

1 问题

git checkout V1

提示错误如下

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

 

 

 

 

2 解决办法

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

然后再

git checkout V1

 

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多