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?
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?
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 the URL has a shortener on git.io already you can still create a new one by adding /index.html or JUST the forward slash /
ex. github https://github.com/jgorset/git.io/issues/5 >> https://git.io/vxba7 now you can still create vanity shortener with --code=NAME, adding a forward slash to URL as https://github.com/jgorset/git.io/issues/5/
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.