git 设置代理git 取消代理
git 全局配置
要检查已有的配置信息: git config --list
步骤一:Git全局配置和单个仓库的用户名邮箱配置
$ git config --global “github’s Name”
$ git config --global user.email “github@”
步骤二:设置代理(以v2rayN软件)
//httpgit 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
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