Giter Club home page Giter Club logo

githubspeedup's Introduction

加速Github访问

走出心理阴影(皮)

原理

通过向提供Web请求的DNS服务器请求针对本地最优的DNS解析数据,把输出数据存入hosts文件,提高本地访问速度

使用

请使用Python3执行

git clone https://github.com/zzh-blog/GithubSpeedUp.git
cd GithubSpeedUp
python GSU.py [command]

查看帮助

python GSU.py help

Help文档

[command]:
     help         (帮助你查找帮助文档)
     add [domain] (添加待检测域名)
      └┈┈ add -y  (跳过确认部分)
     ls           (输出域名列表)
     rm [id]      (删除域名)
      └┈┈ rm -y   (跳过确认部分)
     do [id]      (输出hosts,默认是选择全部id)
     save [file]  (保存hosts)
     IPs [id]     (输出所有域名的ip,默认是选择全部id)

地址列表

  1. 可能存在多组地址
  2. 不同地区的不同时间,获取的高速地址可能不同]

补充的代替方案

使用镜像站点clone或代理下载服务

前置声明

  1. 收录此处的地址仅为我所使用过的,连接稳定性由提供方保证,与本项目无关。
  2. 收录的站点的服务政策不一,可能会收集使用者的信息,如果您不希望被收集信息,请提前查看相关镜像渠道的相关条款。
    • (but: clone github上的仓库不是依然会被收集信息吗 :D )
  3. 请尽量不要在修改任何下载自镜像站的仓库后直接push,存在使账号密码泄露的风险。
  4. 如果发现镜像站地址已经失效,在条件允许的情况下,可以在Issues告知我,我在看到信息后会立即撤除相关地址。
  • 带下

  • 镜像(可以clone)

  • GitHub缓存加速网站

    方法一(替换URL)
    git clone https://gitclone.com/github.com/tendermint/tendermint.git
    方法二(设置git参数)
    git config --global url."https://gitclone.com/".insteadOf https://
    git clone https://github.com/tendermint/tendermint.git
    方法三(使用cgit客户端)
    cgit clone https://github.com/tendermint/tendermint.git
    
  • GitCode 《Github 加速计划》 (不是普适方案,提供方只缓存了部分项目的仓库)

    《Github 加速计划》通过 mirror 镜像仓库来同步 github 上的开源项目

    使用:
    git clone https://gitcode.net/mirrors/用户名/仓库
    

任意一种镜像只解决下载问题,上传的话需要查看.git文件夹的config检查上传仓库的地址,同时期待自己网速够好。

githubspeedup's People

Contributors

henryzeng-zero avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.