JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.jshintrc
.travis.yml A basic CLI that can create a custom git.io domain Jun 5, 2014
.yo-rc.json
Gruntfile.js
README.md
package.json

README.md

gitIO Build Status

A simple CLI to get your own custom git.io domain

Getting Started

Install the module with: npm install -g gitio-cli

To create a new git.io URL:

$ gitio 'http://github.com/your-project-url' 'your-short-url-path'

Examples

If I wanted to make http://git.io/krish redirect to http://github.com/krrishd:

$ gitio 'http://github.com/krrishd' 'krish'

Note: If you've already inputted a GitHub URL through the default webservice, this CLI will just give you the short URL that was originally generated. To bypass it, use a minor variation of the URL you're trying to shorten: for example, change http://github.com/krrishd to http://github.com/krrishd?v1.

License

Copyright (c) 2014 Krish Dholakiya. Licensed under the MIT license.