Delete git.io shortened URL

Viewed 2309

I wanted to shorten my GitHub repo's URL using git.io. I wanted a custom name but accidentally used their automatic name, which is full of random characters.

How can I revert this and get a new one?

5 Answers

Another option is to use the url with the .html ending (or the opposite if you already shortened it). For example, if you did this before:

$ curl https://git.io -F "url=https://X.github.io/pages/page" -F "code=CODE"

You could try using this if you don't mind people seeing the .html extension:

$ curl https://git.io -F "url=https://X.github.io/pages/page.html" -F "code=CODE"

As of January 2022 the ability to shorten URLs via the Git.io URL shortener has been removed. This tool is slated for deprecation in the future, and users are encouraged to use other URL shortening services.

Per The GitHub Blog:

You can no longer create new URLs on git.io. Existing URLs will continue to be accessible, but we encourage using one of the many URL shortening services that are available, instead of git.io, as we will be deprecating the tool in the future.

The www.git.io website (but not the git.io one linked to by the above blog post) has a message regarding this removal:

Sorry, we're no longer accepting new links to shorten.

www.git.io site with message "Sorry, we're no longer accepting new links to shorten."

Related