https://github.com/moonmeister/gitget
Clones git repositories into a single folder organized by username and repo name.
https://github.com/moonmeister/gitget
cli clone developer git tools
Last synced: about 2 months ago
JSON representation
Clones git repositories into a single folder organized by username and repo name.
- Host: GitHub
- URL: https://github.com/moonmeister/gitget
- Owner: moonmeister
- License: mit
- Created: 2019-04-06T11:46:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-06T13:54:59.000Z (about 7 years ago)
- Last Synced: 2025-06-20T23:08:02.176Z (about 1 year ago)
- Topics: cli, clone, developer, git, tools
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gitget
[](https://travis-ci.org/moonmeister/gitget)
Clones git repositories into a single folder organized by username and repo name. For the Go Gophers out there...this is llike `go get` for all your repositories.
## Usage
```bash
# Usage: gitget.sh
# Current valid URLs
# git://github.com/some-user/my-repo.git
# git@github.com:some-user/my-repo.git
# https://github.com/some-user/my-repo.git
$ gitget.sh git://github.com/moonmeister/gitget.git ~/code
# Would clone the repository to:
# Linux:
/home//code/moonmeister/gitget
# macOS:
/Users//code/moonmeister/gitget
```
## Setup Destination
Instead of typing a destination every time you can set it via an environment variable. If you want to override this passing in a different destination will override the environment variable.
```bash
$ export CODE_PATH=~/code
```
## Setup Alias
```bash
# Setup alias
$ alias gg="$CODE_PATH/moonmeister/gitget/gitget.sh"
# Now you can run
$ gg git://github.com/moonmeister/gitget.git
```
I'd recommended this export and alias be added to your bash profile so they are availble permanently.
https://stackoverflow.com/questions/14524590/how-to-add-export-statement-in-a-bash-profile-file
## Contribute
I'd love if you contributed to making this better!
Here are a few features I can think of if you don't have any:
- [ ] Allow for `https://github.com/some-user/my-repo` URLs (no `.git` extension)
- [ ] Allow for `github.com/some-user/my-repo` URLs (no `.git` extension or protocol)
- [ ] Installers for various package managers