https://github.com/mrahhal/gitgc
A small utility for easily cloning github repositories to a pre-configured directory.
https://github.com/mrahhal/gitgc
clone git github go tool
Last synced: 2 months ago
JSON representation
A small utility for easily cloning github repositories to a pre-configured directory.
- Host: GitHub
- URL: https://github.com/mrahhal/gitgc
- Owner: mrahhal
- License: mit
- Created: 2017-01-06T09:41:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-11-13T17:47:39.000Z (over 3 years ago)
- Last Synced: 2025-06-22T00:12:59.763Z (10 months ago)
- Topics: clone, git, github, go, tool
- Language: Go
- Size: 6.84 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# gitgc
A small utility for easily cloning github repositories to a pre-configured directory.
## Install
You need to have [go](https://go.dev) installed first, and then:
```
go install github.com/mrahhal/gitgc@latest
```
## Usage
```
gitgc [user]/[repo]
```
A config file called ".gitgc" in your home directory ("~/.gitgc" on unix, "%USERPROFILE%/.gitgc" on windows) will be used to determine the base directory where repos should be cloned. The ".gitgc" file should contain a single line that represents that directory.
Example ".gitgc" file:
```
C:\dev\git
```
If it doesn't exist it will be automatically created on the first run, and will default to "{user home}/git".