Movatterモバイル変換


[0]ホーム

URL:


Skip to contentSkip to sidebar
/Blog
Try GitHub CopilotSee what's new

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…

|
|1 minutes
  • Share:

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 CreatedLocation: https://git.io/abc123$ curl -i https://git.io/abc123HTTP/1.1 302 FoundLocation: 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 CreatedLocation: 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:

  • UseRiak.
  • Deploy on Rackspace Cloud.

You can assemble your own withGuillotine, 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.


Written by

More onfeatures

Responsible AI pair programming with GitHub Copilot

GitHub Copilot boosts developer productivity, but using it responsibly still requires good developer and DevSecOps practices.

Unboxing fork improvements

We’re always trying to improve the GitHub developer experience in meaningful ways, and we love learning from our customers. In the last several months we released several new fork capabilities, and we’re publishing revised fork documentation that gives more details with clearer explanations to make fork concepts easier to understand.

Related posts

News & insights

The future of AI-powered software optimization (and how it can help your team)

We envision the future of AI-enabled tooling to look like near-effortless engineering for sustainability. We call it Continuous Efficiency.

Illustration of a chemistry lab setup with interconnected glassware and tubing. Beakers, flasks, test tubes, and a large central reaction vessel contain glowing green and blue liquids. A pressure gauge, condenser coil, funnels, and heating plates appear along a blue tiled lab wall, with fluids flowing through tubes between the containers.
News & insights

Let’s talk about GitHub Actions

A look at how we rebuilt GitHub Actions’ core architecture and shipped long-requested upgrades to improve performance, workflow flexibility, reliability, and everyday developer experience.

Company news

GitHub Availability Report: November 2025

In November, we experienced three incidents that resulted in degraded performance across GitHub services.

Explore more from GitHub

Docs

Docs

Everything you need to master GitHub, all in one place.

Go to Docs
GitHub

GitHub

Build what’s next on GitHub, the place for anyone from anywhere to build anything.

Start building
Customer stories

Customer stories

Meet the companies and engineering teams that build with GitHub.

Learn more
The GitHub Podcast

The GitHub Podcast

Catch up on the GitHub podcast, a show dedicated to the topics, trends, stories and culture in and around the open source developer community on GitHub.

Listen now

We do newsletters, too

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.


[8]ページ先頭

©2009-2025 Movatter.jp