美文网首页
2019-12-17 wsl - git设置代理加速github

2019-12-17 wsl - git设置代理加速github

作者: Ztry | 来源:发表于2019-12-26 16:47 被阅读0次

wsl - git设置代理加速github拉去项目

1、使用命令

# http代理:
git config --global https.proxy http://127.0.0.1:10800 # 具体端口看代理软件的端口
git config --global https.proxy https://127.0.0.1:10800
# socks5代理:
git config --global http.proxy 'socks5://127.0.0.1:10800'
git config --global https.proxy 'socks5://127.0.0.1:10800'

2、编辑文件

# 在文件~/.gitconfig添加:
[http]
proxy = socks5://127.0.0.1:10800
[https]
proxy = socks5://127.0.0.1:10800
  1. 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy

git 标签的使用

  1. git branch -a 所有分支
  2. git tag 所有标签
  3. git tag -a v0.0.1 -m '给当前commit 打标签'
  4. git tag -a v0.0.1 abcde(commit head)
  5. git show <tagname>可以看到说明文字
  6. git push origin --tags 推送所有本地标签
  7. git push origin v0.0.1 推送指定标签
  8. git checkout v0.0.1 跳转指定标签
  9. git tag -d v0.0.1 删除指定标签
  10. git push origin -d tag <tagname> 删除远程分支的标签

相关文章

  • 2019-12-17 wsl - git设置代理加速github

    wsl - git设置代理加速github拉去项目 1、使用命令 2、编辑文件 取消代理 git 标签的使用 gi...

  • GIt设置代理

    GIt需要设置代理,才能正常访问github 等网站 设置如下(可复制): git config --global...

  • GIT 笔记

    git 访问github总是提示timeOut,可以通过设置代理解决。 设置方法: git config --gl...

  • git常用命令

    Git常用命令 git中设置全局代理: 取消全局代理: 针对github进行单独设置: 查看当前用户的全局配置 显...

  • 设置git代理加速

    在国内使用git非常慢,往往git clone一个需要几十分钟, 于是在网上找个相关的加速方法,现总结如下: 方法...

  • idea、gitbash使用http代理设置

    idea设置http代理后,可以登录github但无法clone代码。 需要在Git bash中也设置代理 设置代...

  • git设置代理

    访问github慢是一个通病,不过可以给git设置带来提速 1. 为git设置全局代理 2. 取消代理 3. 只对...

  • git设置socks代理

    概述 不知道为什么今天我访问github这么慢,没办法给git设置socks代理吧 设置代理 终端下执行git c...

  • git设置代理加速clone

    设置当前代理git config http.proxy http://127.0.0.1:2333取消当前代理gi...

  • 利用SS服务加速Pod Setup(git clone)

    只针对github加速 ss设置,开启http代理 注: ipv4:port ==> 127.0.0.1:1080...

网友评论

      本文标题:2019-12-17 wsl - git设置代理加速github

      本文链接:https://www.haomeiwen.com/subject/owgenctx.html