颤振升级失败 [英] Flutter upgrade fail

查看:60
本文介绍了颤振升级失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试更新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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆