gpt4 book ai didi

git - 在 Proxy 后面使用 Vundle

转载 作者:太空狗 更新时间:2023-10-29 13:20:03 26 4
gpt4 key购买 nike

我们有这个简洁的小脚本可以让我们在 linux 环境中通过代理使用互联网。例如

withproxy git clone https://github.com/VundleVim/Vundle.vim.git

工作正常,甚至不提示我输入用户名和密码。

我如何在 Vundle 的 .vimrc 中设置它,以便所有 git 东西都以这个代理脚本为前缀?

最佳答案

How do I set this up within the .vimrc for Vundle so that all the git things are prefixed by this proxy script?

你不知道。你要做的是让 git 通过代理:

git config --global http.proxy http://username:password@proxy.example.com:8080

您还可以将环境变量 http_proxy 设置为相同的内容:

export http_proxy='http://username:password@proxy.example.com:8080'

如果您这样做,您可能还需要一个 https_proxy

关于git - 在 Proxy 后面使用 Vundle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31424796/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com