get a repository
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
main.go
main_test.go

README.md

get

A wrapper of ghq and go.

Build Status Coverage Status

Installation

go get github.com/pocke/get

Usage

$ get TYPE ADDRESS

get supports 2 types.

get supports 4 styles of address.

  • https://github.com/pocke/get
  • https://github.com/pocke/get.git
  • github.com/pocke/get.git
  • git@github.com:pocke/get.git

For example

$ get go https://github.com/pocke/get
$ get ghq github.com/pocke/get.git

Advanced Usage

Get supports -shallow and -unshallow options. They work with ghq. Get just ignores them with go.

When -shallow option is given, get clones the specified repository shallowly. When -unshallow option is given, get executes git fetch --unshallow asynchronously.

They improves cloning speed. If you specify -shallow and -unshallow, you can clone repository faster, and get whole repository after a while. For example:

$ get -shallow -unshallow ghq https://github.com/pocke/get

If you'd like to enable this feature by default, put a config file to ~/.config/get/args with the below content.

-shallow -unshallow

Links

License

These codes are licensed under CC0.

CC0