簡體   English   中英

Git 無法克隆 repo

[英]Git can't clone repo

我正在嘗試從 GitHub 克隆一些 repo,但出現如下錯誤:

fatal: unable to access 'https://github.com/some/thing.git/': Received HTTP code 403 from proxy after CONNECT

我在公司代理后面,但我已經將它設置在 . gitconfig

這是在我的.gitconfig里面:

[http]
    proxy = http://something.com:80

[https]
    proxy = http://something.com:80

你有什么主意嗎?

您的代理需要憑據嗎? 如果是,請在代理 URL 中添加您的憑據。 您可以嘗試在 cmd 中使用運行此命令。

git config --global https.proxy http://username:password@host:port

此命令將更新您的 .gitconfig 文件,如下所示。

[http]
proxy = http://username:password@host:port

[https]
proxy = http://username:password@host:port

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM