Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linuxsuren/cgit
cgit is a tiny git tool for Chinese developers. cgit can clone code from a mirror of GitHub.
https://github.com/linuxsuren/cgit
chinese git git-extension git-wrapper github-mirrors mirror
Last synced: 2 months ago
JSON representation
cgit is a tiny git tool for Chinese developers. cgit can clone code from a mirror of GitHub.
- Host: GitHub
- URL: https://github.com/linuxsuren/cgit
- Owner: LinuxSuRen
- License: mit
- Created: 2020-12-05T01:17:18.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-12T12:41:38.000Z (over 1 year ago)
- Last Synced: 2024-10-03T12:42:38.161Z (3 months ago)
- Topics: chinese, git, git-extension, git-wrapper, github-mirrors, mirror
- Language: Go
- Homepage:
- Size: 38.9 MB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![](https://goreportcard.com/badge/linuxsuren/cgit)](https://goreportcard.com/report/linuxsuren/cgit)
[![](http://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square)](https://godoc.org/github.com/linuxsuren/cgit)
[![Contributors](https://img.shields.io/github/contributors/linuxsuren/cgit.svg)](https://github.com/linuxsuren/cgit/graphs/contributors)
[![GitHub release](https://img.shields.io/github/release/linuxsuren/cgit.svg?label=release)](https://github.com/linuxsuren/cgit/releases/latest)
![GitHub All Releases](https://img.shields.io/github/downloads/linuxsuren/cgit/total)cgit is a wrapper of git.
# Features
* Clone a repo from GitHub without the whole URL
* GitHub proxy transparent support
* Git command alias support## Mirror
`cgit` can set a mirror address for you if it's very slow with fetching data from GitHub.
Run this command `cgit mirror` in your local git repository directory,
it'll change the fetch address to `github.com.cnpmjs.org`. Reversing it is very easy,
just run command `cigt mirror --enable=false`.# Install
```
brew install linuxsuren/linuxsuren/cgit
```cgit is fully compatible with git. So you make an alias for it. Add the following line into you shell profile:
`alias git='cgit'`
For bash users, you edit it via: `vim ~/.bashrc`
For zsh users, you can edit via: `vim ~/.zshrc`
# Get started
## Clone
`cgit clone linuxsuren/cgit`
## GitHub Proxy
Sometimes it's very slow when clone the code from GitHub. So cgit will clone it by [a GitHub proxy](http://github.com.cnpmjs.org/).
## Alias
Add a command alias: `cgit alias set cm 'checkout master'`
Use an alias: `cgit cm`
List all alias commands: `cgit alias list`
# Release
This project can be released via [linuxsuren-versions](https://github.com/linuxsuren/linuxsuren-versions).