This is a Go client for git.io.
Read more about git.io here.
$ go get github.com/xlab/gitio/...
Or grab a binary in the Releases section.
$ 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