安装flutter环境时出现fatal: 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 [...] -- [...]'

解决方式 : 在flutter目录下 : git commit --allow-empty -n -m "Initial commit"

你可能感兴趣的:(安装flutter环境时出现fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.)