Skip to content

xlab/gitio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitio GoDoc

This is a Go client for git.io.

Read more about git.io here.

Installation

$ go get github.com/xlab/gitio/...

Or grab a binary in the Releases section.

Usage

$ gitio -h
Usage: gitio <long url>
  -c, --code=""        A custom code for the short link, e.g. https://git.io/mycode
  -f, --force=false    Try to shorten link even if the custom code has been used previously.

$ gitio -c gitio.go https://github.com/xlab/gitio/blob/master/gitio.go
https://git.io/gitio.go

License

MIT