【发布时间】:2018-08-31 08:09:51
【问题描述】:
我不确定在私人仓库中“拉取访问”意味着什么。我现在应该能够克隆它吗?我不能。
[1045](m7int01)~/codes>git clone https://github.com/glwhart/[repo_name]
Initialized empty Git repository in /zhome/glh43/codes/[repo_name]/.git/
error: The requested URL returned error: 403 Forbidden while
accessing https://github.com/glwhart/[repo_name]/info/refs
fatal: HTTP request failed
但我可以下载源代码的 zip 文件...
【问题讨论】:
-
也许您需要传递您的用户名?如果是这样,
git help clone并搜索username -
您应该可以
git clone https://username:password@github.com/glwhart/[repo_name],尽管明文传递您的密码并不是最好的办法 -
在我以前的组织中,所有对github的http请求都被防火墙阻止了,我也曾经收到相同的消息
标签: git github git-pull git-clone