###GIT 如何设置代理提速git clone
大陆由于被GFW,git 登陆与clone会受到影响,所以添加gogant后,可设置代理。
参加使用 个人配置:
设置代理
git config –global http.proxy http://proxyuser:proxypwd@proxy.server.com:port
我个人的配置方法: “git config –global –add http.proxy 127.0.0.1:8087”
删除代理
git config –system (or –global or –local) –unset http.proxy
个人配置:”git config –global –unset http.proxy”
关闭SSL验证
git config –global http.sslVerify false
下载代码
git clone http://server.com/source.git
提交本地branch至remote
git push
删除本地分支
git branch -d the_local_branch