当我尝试更新 Flutter 时,出现以下错误。
error: Your local changes to the following files would be overwritten by merge: examples/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj
Please commit your changes or stash them before you merge.
Aborting Updating f9bb4289e..5ab9e7072 Process finished with exit code 1
我怀疑在某些时候我在示例项目中做了一些事情,我不在乎失去更改。
最简单的方法是什么?
最佳答案
转到你的flutter 主目录并执行git checkout .
或git reset head --hard
关于Flutter 升级失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52397496/