Git.io: GitHub URL Shortener
Do you have a GitHub URL you’d like to shorten? Use Git.io! $ curl -i https://git.io -F “url=https://github.com/…” HTTP/1.1 201 Created Location: https://git.io/abc123 $ curl -i https://git.io/abc123 HTTP/1.1 302 Found…
Do you have a GitHub URL you’d like to shorten? Use Git.io!
$ curl -i https://git.io -F "url=https://github.com/..."
HTTP/1.1 201 Created
Location: https://git.io/abc123
$ curl -i https://git.io/abc123
HTTP/1.1 302 Found
Location: https://github.com/...
You can specify your own code to setup your own vanity URL:
$ curl -i https://git.io -F "url=https://github.com/technoweenie"
-F "code=t"
HTTP/1.1 201 Created
Location: https://git.io/t
You can currently see Git.io in action on certain 3rd party services, such as Campfire.
The Code
Git.io was written and deployed by myself and @atmos as a big experiment. Our goals:
- Use Riak.
- Deploy on Rackspace Cloud.
You can assemble your own with Guillotine, the URL shortening hobby kit. It’s written in Ruby as a Sinatra app, and supports storing links in Riak or a relational DB.
Though a URL shortener is about the easiest project one could take on, it gave us a chance to experiment. As a result, I’ve been able to spread my excitement about Riak to more people at GitHub. The Riak 1.0 upgrade gave us a chance to experiment with a rolling upgrade across our cluster (for the new version, and the new leveldb backend). We also have better support with our Hubot and puppet scripts for managing deployments through Rackspace Cloud.
Tags:
Written by
Related posts
![](https://github.blog/wp-content/uploads/2023/10/Collaboration-DarkMode-2.png?resize=400%2C212)
2024 is the biggest global election year in history. What’s at stake for developers?
GitHub is considering what is at stake for our users and platform, how we can take responsible action to support free and fair elections, and how developers contribute to resilient democratic processes.
![](https://github.blog/wp-content/uploads/2023/10/AI-DarkMode-2.png?resize=400%2C212)
GitHub named a Leader in the Gartner first-ever Magic Quadrant for AI Code Assistants
This year, as part of its annual Magic Quadrant series, Gartner published a first-of-its-kind report analyzing the state of play in the AI Code Assistants market–and named GitHub a Leader.
![AI in software development 2024 survey results with colorful graphics and percentages.](https://github.blog/wp-content/uploads/2024/08/ai-survey-header.png?resize=400%2C212)
Survey: The AI wave continues to grow on software development teams
We surveyed 2,000 people on software development teams at enterprises in the U.S., Brazil, India, and Germany about the use, experience, and expectations around generative AI tools in software development.