Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete git.io shortened URL

Tags:

url

github

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?

like image 543
DEADBEEF Avatar asked Jun 03 '17 18:06

DEADBEEF


People also ask

What happened git io?

In January 2022, we announced that git.io was becoming read-only. As notified in January, we shared our plans to deprecate the service.

How do I shorten a GitHub URL?

The answer is git.io. Git.io is a service provided by GitHub to shorten the URLs. To shorten the URLs, simply go to https://git.io/ and enter your GitHub URL. The URLs can be GitHub repositories and even GitHub Pages URL.


2 Answers

If someone else created it first, it will return the existing shortened URL. So, it is currently not possible to override but you can contact GitHub support team to either remove or change it.

I discovered following trick though, you can add a harmless query param ? to make it different:

$ curl -i https://git.io -F "url=YOUR_GITHUB_URL_HERE?" -F "code=YOUR_CUSTOM_NAME"

Hope that helps.

like image 200
hurturk Avatar answered Sep 21 '22 12:09

hurturk


Please note that as of Sep 2020 GitHub Support is no longer releasing git.io URLs:

https://github.blog/changelog/2020-09-23-git-io-urls-no-longer-released-by-github-support/

like image 33
yamiacat Avatar answered Sep 25 '22 12:09

yamiacat