相关文章推荐
兴奋的草稿纸  ·  WSO2 Axis2 ...·  1 年前    · 
健壮的眼镜  ·  Java XPath ...·  1 年前    · 
大鼻子的香烟  ·  Go ...·  1 年前    · 

git fatal:ambiguous argument HEAD: unknown revision or path not in the working tree. 解决方案

最新推荐文章于 2023-03-19 09:39:22 发布
最新推荐文章于 2023-03-19 09:39:22 发布 阅读量3.8w

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成功。

git fatal:ambiguous argument HEAD: unknown revision or path not in the working tree. 解决方案 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@aa..
fatal : ambiguous argument HEAD ~1‘: unknown re vision or path not in the work ing tree .
最近在Flutter的开发中,引入了几个第三方包,也就是插件,结果在iOS编译的时候,突然编译不过了,报错信息信息如下: Updat ing spec repo `cocoapods` $ /usr/local/bin/ git -C /Users/zhouxp/.cocoapods/repos/cocoapods fetch origin --progress remote: Enumerat ing objects: 15, done. remote: Count ing obje...
解决了 fatal : ambiguous argument ' HEAD ^': unknown re vision or path not in the work ing tree . Use '--' to separate path s from re vision s, like this: ' git [...] -- [...]'报错的问题
# service postfix start Start ing Postfix Mail Transport Agent: postfixpostfix/postfix-script: fatal : the Postfix mail system is already runn ing failed! 此外,postfix的status报告postfix is not runn ing . # service postfi
执行 git reset --hard HEAD ^报错 fatal : ambiguous argument ' HEAD ^': unknown re vision or path not in the ...
git reset --hard HEAD ^: fatal : ambiguous argument ' HEAD ^': unknown re vision or path not in the work ing tree . Use '--' to separate path s from re vision s, like this: ' git <co... More? fatal : ambiguous argument ' HEAD ': unknown re vision or path not in the work ing tree . Use '--' to separate path s from re vision s, like this: ' git <command> [<re vision > fatal : ambiguous argument 'origin/master.. HEAD ': unknown re vision or path not in the work ing tree . Use '--' to separate path s from re vision s, like this: ' git <command> [<re vision >...] -- [<file>..
From git hub.com:26huitailang/learn-sth-everyday 7cf57b0..d9f7ae2 master -> origin/master Updat ing 7cf57b0..d9f7ae2 error : Your local changes to the follow ing files would be overwritten by merge: liaoxuefeng/awesome-python-webapp/LICENSE 完整的错误信息 Сannot Run Git xcrun: error : invalid active developer path (/Library/Developer/CommandLineTools), miss ing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 看了下 Git 命令能否正常使用  命令行 git –help 依然报和上面同样的错误 在查找了下 git 的安装目录   whereis git /usr/bin/
git fatal:ambiguous argument HEAD: unknown revision or path not in the working tree. 解决方案 38584