当试图克隆到新目录的回购时,我得到一个致命错误。我看不到我做错了什么。Github克隆错误:无法切换到
林CentOS的服务器上,在命令行中运行:
git clone [email protected]:MYUSERNAME/REPONAME.git newdirectory
我得到的错误:
fatal: Could not switch to '[email protected]/MYUSERNAME': No such file or directory
newdirectory肯定存在,我登录的用户有写权限,并且还设置了github ssh密钥。
如果我把什么东西在newdirectory
任何人有任何想法,我能试试吗?干杯
UPDATE: 这是,如果我尝试基于的不是SSH SSL会发生什么:
-bash-4.1$ git clone https://github.com/MYUSERNAME/REPONAME.git newdirectory Initialized empty Git repository in /var/www/html/newdirectory/.git/ error: The requested URL returned error: 401 while accessing >https://github.com/MYUSERNAME/REPONAME.git/info/refs
fatal: HTTP request failed
我认为这是,虽然可以预料,其私人github上回购,林不知道HTTPS为私人回购工作?部分原因是我过去总是使用ssh(成功)。
https验证有效,如果没有给出验证,它应该要求您在需要时进行验证。 401将表明您正在使用的用户进行身份验证的用户无法再访问存储库。如果情况并非如此,那么我会怀疑github可能会遇到问题。 – Wolph