Skip to content

Instantly share code, notes, and snippets.

@watain666
Forked from dikiaap/git-io-custom-url.md
Last active November 15, 2018 08:05
Show Gist options
  • Save watain666/c18dd3d30f989f4035805b69b95a2a1a to your computer and use it in GitHub Desktop.
Save watain666/c18dd3d30f989f4035805b69b95a2a1a 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 / or ? 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"

or

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