Skip to content

Instantly share code, notes, and snippets.

@gamesthings
Forked from dikiaap/git-io-custom-url.md
Created May 18, 2021 20:35
Show Gist options
  • Save gamesthings/48fc50871448c06a29216530a7b3a77a to your computer and use it in GitHub Desktop.
Save gamesthings/48fc50871448c06a29216530a7b3a77a 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/*
  • https://*.githubusercontent.com/*

If you accidentally make a typo in the custom name, you can add .git (only the repository name) or ? at the end in your GitHub URL.

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL.git" -F "code=YOUR_CUSTOM_NAME"
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. As of 23 September 2020, you can no longer request to revoke your outdated or incorrect git.io URL.

Shortcut to this Gist: git.io/customurl

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