我使用终端克隆我的方空间存储库。我使用此代码并遇到一些用户名和密码问题
my-iMac:~ Beast$ git clone https://my-url.dev.squarespace.com/template.git
Cloning into template...
Username:
Password:
warning: remote HEAD refers to nonexistent ref, unable to checkout.
我无法输入任何用户名或密码。当我输入UN或PW字段时,没有任何内容出现。
警告:远程HEAD指的是不存在的ref,无法结账。这究竟是什么意思。我用谷歌搜索它仍然没有完全理解。 :(
我一直在关注http://developers.squarespace.com/using-git/
的SS页面由于对GIT知之甚少,我知道我已经正确安装了它。
获得此警告标志的任何帮助都会非常棒。谢谢
答案 0 :(得分:2)
您遇到的问题是由于远程存储库中不存在主分支。这里解释得更好:
warning: remote HEAD refers to nonexistent ref, unable to checkout