尝试克隆私有存储库,我可以使用HTTPS协议访问,因为这仅允许传出流量。
git不要求输入密码,只是失败了。
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/blah/blahblah.git/info/refs
我想念什么?
您是否尝试过在克隆URL中插入用户名(以及可选的密码)?
git clone https://[email protected]/blah/blahblah.git
或者如果您接受以纯视图方式存储密码的后果,请执行以下操作:
git clone https://username:[email protected]/blah/blahblah.git
看到此线程有很多不错的信息:
运行“ git clone [email protected]”时如何提供用户名和密码?
编辑:我的原始答案只是快速解决方案,无需了解asker的完整历史记录,它也可以在无人看管的情况下工作,但是为了获得最佳安全性,最好让Git存储您的密码。也请参见@phpguru的答案:https ://stackoverflow.com/a/29018371/257090 。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句