颤振升级失败 [英] Flutter upgrade fail
问题描述
当我尝试更新Flutter时,出现以下错误.
When I attempt to update Flutter I get the following error.
错误:您对以下文件的本地更改将被覆盖 通过合并: 示例/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj
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.
中止更新 f9bb4289e..5ab9e7072进程结束,退出代码为1
Aborting Updating f9bb4289e..5ab9e7072 Process finished with exit code 1
我怀疑在某个时候我在示例项目中做了一些事情,并且我并不在乎丢失更改.
I suspect at some point I did something in the examples project and I don't care about loosing the changes.
最容易做的是什么?
推荐答案
转到原始目录 并执行git checkout .
或git reset head --hard
Go to your flutter home directory and do git checkout .
or git reset head --hard
这篇关于颤振升级失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!