Github:I';“我已被授予”;拉入通道“;私人回购,但我可以';t克隆repo(但我可以下载源代码的zip)
我不确定在私人回购协议上“拉入”意味着什么。我现在可以克隆它吗?我不能Github:I';“我已被授予”;拉入通道“;私人回购,但我可以';t克隆repo(但我可以下载源代码的zip),git,github,git-pull,git-clone,Git,Github,Git Pull,Git Clone,我不确定在私人回购协议上“拉入”意味着什么。我现在可以克隆它吗?我不能 [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 acce
[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 credential helper,它可能缓存了错误的凭据:
git config credential.helper
正如建议的那样,
git克隆https://username:password@github.com/…
可用于强制使用这些(正确的)凭据,仅用于测试。很抱歉,我要占用带宽回答一个简单的问题。无论如何,github页面上的“复制到剪贴板”按钮(用于克隆回购协议)似乎给了我一个虚假的url。今天早上我又试了一次,结果不一样了,但还是不行
与上面的几条建议/评论类似,url中包括我的用户名(但不是密码)起到了关键作用:
git clone https://[username]@github.com/[orgname/reponame].git
这已正确连接,请求输入我的github密码,并正常工作
感谢那些花时间回应的人
我仍然想知道“拉式访问”是否与其他类型的访问不同。邀请我的电子邮件说我已被授予“拉取访问权”…也许你需要传递你的用户名?如果是这样,
git-help-clone
并搜索username
您应该能够git-clonehttps://username:password@github.com/glwhart/[repo_name]
,虽然在我以前的组织中以明文形式传递密码不是最好的主意,但所有对github的http请求都被防火墙阻止,我也曾经收到过同样的信息