# cgit **Repository Path**: killf/cgit ## Basic Information - **Project Name**: cgit - **Description**: cgit是一个github快速下载器,使用国内镜像,clone速度可达10M/s。 - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: https://gitee.com/killf/cgit - **GVP Project**: No ## Statistics - **Stars**: 151 - **Forks**: 24 - **Created**: 2020-09-07 - **Last Updated**: 2025-05-22 ## Categories & Tags **Categories**: vcs **Tags**: None ## README # cgit > cgit是一个github快速下载器,使用国内镜像,clone速度可达10M/s。 ### 一、安装方法 目前,已提供了Ubuntu、Mac、Window的预编译程序,如果使用的是其他系统,可以采用源码编译安装。 **linux下安装** ```shell script sudo wget http://cgit.killf.info/cgit_linux_latest -O /usr/local/bin/cgit && sudo chmod 755 /usr/local/bin/cgit ``` **mac下安装** ```shell script sudo wget http://cgit.killf.info/cgit_mac_latest -O /usr/local/bin/cgit && sudo chmod 755 /usr/local/bin/cgit ``` **arm下安装** ```shell script sudo wget http://cgit.killf.info/cgit_arm_latest -O /usr/local/bin/cgit && sudo chmod 755 /usr/local/bin/cgit ``` **window下安装** 点击[下载](http://cgit.killf.info/cgit.exe)链接,将程序放到你喜欢的目录下,然后将该路径配置`PATH`变量下 **编译安装** ```shell script git clone https://github.com/killf/cgit.git && sudo ./cgit/install.sh ``` ### 二、使用方法 cgit运行时与需要使用git,因此需要先安装git。 linux平台下GIT的默认地址为`/usr/bin/git`,window平台下GIT的默认地址为`C:\\Program Files\\Git\\bin\\git.exe`, 如果需要使用其他路径的git,可配置环境变量`GIT`,如: ```shell export GIT=/usr/bin/git ``` 也可以通过设置环境变量`CGIT_MIRROR`来修改默认的镜像地址,如: ```shell export CGIT_MIRROR=https://hub.fastgit.org ``` cgit的使用方法git与一样,事实上内部使用的也是git,使用时只需将命令替换成cgit即可,如下: ``` cgit clone https://github.com/killf/cgit.git ``` ### 三、下载速度 ![](doc/img1.jpg) ![](doc/img2.jpg)