How to use Git.io to shorten GitHub URLs and create vanity URLs – 049 – Sara Ford's Blog
Suppose you want to shorten the URL to a particular location on GitHub. Or perhaps you want to create a vanity URL that goes directly to your GitHub profile, e.g. https://git.io/saraford. You can use Git.io: GitHub URL Shortener.
To shorten a URL, open your favorite command prompt (via Git Shell) and type in
curl -i https://git.io -F "url=https://github.com/saraford/your-moment-of-github-zen/issues"
in the response, you’ll see your shorten URL!
Location: https://git.io/vMdeF
To create a vanity URL for your GitHub profile,
curl -i https://git.io -F "url=https://github.com/saraford" -F "code=saraford"
in the response, you’ll see a new way to refer to your GitHub profile!
Location: https://git.io/saraford