Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kitagry/git-get
https://github.com/kitagry/git-get
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kitagry/git-get
- Owner: kitagry
- Created: 2019-05-20T08:15:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-20T08:18:07.000Z (over 5 years ago)
- Last Synced: 2024-12-15T14:43:50.087Z (20 days ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## git-get
This is wrapper for `git clone` command.
## Background
I manage some repositories in $HOME/src/github.com/USER_NAME/REPO_NAME.
So, when I download an repository, I always run below command.```
$ cd $HOME/src/github.com
$ mkdir USER_NAME
$ cd USER_NAME
$ git clone $HOME/src/github.com/USER_NAME/REPO_NAME
```This is shortcut for above commands.
## Installation
```
$ go get github.com/kitagry/git-get
```## Usage
```
$ git get https://github.com/hoge/fuga
```So, git clone the above repository in `$GITGET_HOME/github.com/hoge/fuga` (If `$GITGET_HOME` is not present, it will clone in `$HOME/src/github.com/hoge/fuga`)