Skip to content

Instantly share code, notes, and snippets.

@bakotaco
bakotaco / gitio
Created February 16, 2012 12:04 — forked from defunkt/gitio
Turn a github.com URL into a git.io URL.
#!/usr/bin/env ruby
# Usage: gitio URL [CODE]
#
# Turns a github.com URL
# into a git.io URL
#
# Copies the git.io URL to your clipboard.
url = ARGV[0]
code = ARGV[1]