git安装问题 Couldn't find remote ref HEAD

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

未使用github,使用的阿里云服务器自己搭建,使用ssh

ssh生成的公钥,要放在服务器的根目录.ssh下,如果没有该目录,执行mkdir .ssh

问题1:

 Couldn't find remote ref HEAD

git安装问题 Couldn't find remote ref HEAD_第1张图片

对你的版本库执行

chmod -R 777 /xxx

问题2:

refusing to update checked out branch:refs/heads/master

git安装问题 Couldn't find remote ref HEAD_第2张图片

进入版本库.git,修改文件config,添加

[receive]

denyCurrentBranch =  ignore

参考地址:

廖雪峰 : http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000

酷赛睿:http://www.cnblogs.com/cosiray/archive/2012/06/01/2530967.html

转载于:https://my.oschina.net/weizhikai/blog/375411

你可能感兴趣的:(git安装问题 Couldn't find remote ref HEAD)