Flutter未能找到最新的git提交日期:VersionCheckError:命令已退出,代码为128:



我想运行flutter,但我正在键入flutter doctor来检查错误,如何解决此问题?我该怎么解决这个问题?我需要从GitHub克隆一些东西吗?

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
Failed to find the latest git commit date: VersionCheckError: Command exited
with code 128: git -c log.showSignature=false log -n 1 --pretty=format:%ad
--date=iso
Standard out: 
Standard error: error: packfile
.git/objects/pack/pack-386a4710d154dadbf761f33be4f99672f82ac35e.pack does not
match index
error: packfile
.git/objects/pack/pack-386a4710d154dadbf761f33be4f99672f82ac35e.pack does not
match index
error: packfile
.git/objects/pack/pack-386a4710d154dadbf761f33be4f99672f82ac35e.pack does not
match index
error: packfile
.git/objects/pack/pack-386a4710d154dadbf761f33be4f99672f82ac35e.pack does not
match index
error: packfile
.git/objects/pack/pack-386a4710d154dadbf761f33be4f99672f82ac35e.pack does not
match index
error: packfile
.git/objects/pack/pack-386a4710d154dadbf761f33be4f99672f82ac35e.pack does not
match index
fatal: bad object HEAD
Returning 1970-01-01 02:00:00.000 instead.

您可以运行此命令来修复错误。C:/flutter,必须是您的flutter安装路径。

git config --global --add safe.directory C:/flutter

相关内容

  • 没有找到相关文章

最新更新