当前位置:首页 > CN2资讯 > 正文内容

git 设置代理git 取消代理

9小时前CN2资讯

git 全局配置

要检查已有的配置信息: git config --list
步骤一:Git全局配置和单个仓库的用户名邮箱配置

$ git config --global “github’s Name”

$ git config --global user.email “github@”

步骤二:设置代理(以v2rayN软件)

//http
git config --global https.proxy http://127.0.0.1:10809
//https
git config --global https.proxy https://127.0.0.1:10809

步骤三:查看配置

$ git config --list

diff.astextplain.textconv=astextplain

filter.lfs.clean=git-lfs clean -- %f

filter.lfs.smudge=git-lfs smudge -- %f

filter.lfs.process=git-lfs filter-process

filter.lfs.required=true

http.sslbackend=openssl

http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt

core.autocrlf=true

core.fscache=true

core.symlinks=false

pull.rebase=false

credential.helper=manager-core

credential.https://dev.azure.com.usehttppath=true

init.defaultbranch=master

[email protected]

[email protected]

https.proxy=https://127.0.0.1:10809

http.proxy=http://127.0.0.1:10809

取消代理

git config --global --unset http.proxy
git config --global --unset https.proxy

    你可能想看:

    扫描二维码推送至手机访问。

    版权声明:本文由皇冠云发布,如需转载请注明出处。

    本文链接:https://www.idchg.com/info/24550.html

    标签: git设置代理
    分享给朋友:

    “git 设置代理git 取消代理” 的相关文章