0x00 解决方案

Ubuntu 14.04 在运行git init后,编译文件显示fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.错误。

解决方案  输入命令 

git commit --allow-empty -n -m "Initial commit"

提示需要身份验证,输入身份验证:

git config --global user.email "aaaa@aaa.com"
git config --global user.name "aaaa"

再次git commit --allow-empty -n -m "Initial commit",  然后make成功。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐