• Home
  • About
    • W x Workshop photo

      W x Workshop

      Technology, Maker, Life.

    • Learn More
    • Email
    • LinkedIn
    • Github
    • Steam
    • Weibo
  • Posts
    • All Posts
    • All Tags
  • Projects

git clone 设置代理方式

08 Mar 2014

Reading time ~1 minute

###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



技术分享git Like Tweet +1