Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 错误的默认修订头_Git_Logging_Branch - Fatal编程技术网

Git 错误的默认修订头

Git 错误的默认修订头,git,logging,branch,Git,Logging,Branch,当我这样做时: 吉特日志 ,我得到消息: 致命:错误的默认版本“HEAD” ,如果我做了git fsck,我会得到: notice: HEAD points to an unborn branch (master) Checking object directories: 100% (256/256), done. notice: No default references dangling blob 965fb7997c335172263ad1e220959ae2c733ed19 而git分

当我这样做时: 吉特日志 ,我得到消息:

致命:错误的默认版本“HEAD”

,如果我做了git fsck,我会得到:

notice: HEAD points to an unborn branch (master)
Checking object directories: 100% (256/256), done.
notice: No default references
dangling blob 965fb7997c335172263ad1e220959ae2c733ed19
git分支
给我空输出

我的回购协议有什么问题,如何解决


我尝试了
git symbolic ref HEAD refs/heads/master
,但也没有任何帮助。

好的,我发现了问题所在,实际上我从未做过第一次提交。

忘记了回购协议,因为我很久以前就在那里做了改变