Skip to content

Instantly share code, notes, and snippets.

@rowe-morehouse
Forked from dikiaap/git-io-custom-url.md
Last active September 21, 2020 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rowe-morehouse/3c1a1922740f5ca1754cc60a1a0222d8 to your computer and use it in GitHub Desktop.
Save rowe-morehouse/3c1a1922740f5ca1754cc60a1a0222d8 to your computer and use it in GitHub Desktop.
github URL shortener / git.io custom URL

github url shortener / generate custom github url

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be shortened:

  • https://github.com/*
  • https://*.github.com
  • https://*.github.com/*
  • https://*.github.io
  • https://*.github.io/*
  • https://*.githubusercontent.com/*

If you accidentally make a typo in the custom name, you can add ? at the end in your GitHub URL.

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL?" -F "code=YOUR_CUSTOM_NAME"

If you want to revoke your custom name (shortened url), you should contact GitHub Support Team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment