我们有一个简洁的小脚本,让我们在linux环境下通过代理使用互联网。例如
withproxy git clone https://github.com/VundleVim/Vundle.vim.git工作很好,甚至没有提示我的用户名和密码。
我如何在Vundle的.vimrc中设置它,以便所有的git都以这个代理脚本为前缀?
发布于 2015-07-15 10:06:32
我如何在Vundle的
.vimrc中设置它,以便所有的git都以这个代理脚本为前缀?
你做的不是,而是让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。
https://stackoverflow.com/questions/31424796
复制相似问题