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

聚焦前沿AI与大模型技术探索,汇聚开发者及爱好者,共享开源项目、学习资源与行业资讯。

更多推荐