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?
In January 2022, we announced that git.io was becoming read-only. As notified in January, we shared our plans to deprecate the service.
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.
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With