Skip to content

Instantly share code, notes, and snippets.

@nirmaldalmia
Forked from dikiaap/git-io-custom-url.md
Created October 9, 2018 18:04
Show Gist options
  • Save nirmaldalmia/ea145251afd06e799043b8ffe661e114 to your computer and use it in GitHub Desktop.
Save nirmaldalmia/ea145251afd06e799043b8ffe661e114 to your computer and use it in GitHub Desktop.
git.io custom URL

Command:

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

URLs that can be created is from:

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

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, you should contact GitHub Support Team.

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