Skip to content

pocke/get

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages