美文网首页
【Flutter】错误汇总

【Flutter】错误汇总

作者: 在这蓝色天空下 | 来源:发表于2020-05-29 16:10 被阅读0次

1、ambiguous argument 'HEAD': unknown revision or path not in the working tree.

fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
  • 解决方式 : 在flutter目录下 : git commit --allow-empty -n -m "Initial commit"

2、The Flutter directory is not a clone of the GitHub project.

Error: The Flutter directory is not a clone of the GitHub project.
       The flutter tool requires Git in order to operate properly;
       to set up Flutter, run the following command:
       git clone -b stable https://github.com/flutter/flutter.git
  • 解决方式 : 在flutter目录下 : git clone -b stable https://github.com/flutter/flutter.git

相关文章

网友评论

      本文标题:【Flutter】错误汇总

      本文链接:https://www.haomeiwen.com/subject/leffzhtx.html