无法切换到抖动的Beta频道 C:\ Users \ vairo_drrrnuo \ IdeaProjects \ bridge> flutter频道beta
Switching to flutter channel 'beta'...
git: From https://github.com/flutter/flutter
git: f994b7697..9b9b543d9 beta -> origin/beta
git: + cb8832388...7cd39d661 dds_integration_take_2 -> origin/dds_integration_take_2 (forced update)
git: 15a28159b..c68758fab master -> origin/master
git: * [new tag] 1.19.0-4.2.pre -> 1.19.0-4.2.pre
git: error: The following untracked working tree files would be overwritten by checkout:
git: examples/flutter_view/ios/Podfile
git: packages/flutter_tools/lib/src/base/platform.dart
git: Please move or remove them before you switch branches.
git: Aborting
Switching channels failed with error code 1.
答案 0 :(得分:0)
您的项目的两个文件似乎已更改,这在更改频道时会导致问题:
此外,两个文件似乎都没有在git存储库中建立索引。因此,您现在有以下选择:
flutter channel beta
。(可能是最简单的解决方案)git comit
,然后再次运行翻译成www.DeepL.com/Translator(免费版本)
答案 1 :(得分:0)
转到flutter目录,然后打开终端,输入以下 git clean -xffd