Skip to content

Instantly share code, notes, and snippets.

@illvart
Last active November 16, 2020 19:52
Show Gist options
  • Save illvart/7b9e0d150bc388e7c8fd297fc47dd949 to your computer and use it in GitHub Desktop.
Save illvart/7b9e0d150bc388e7c8fd297fc47dd949 to your computer and use it in GitHub Desktop.
https://git.io custom shortener name

git.io custom short name

Before execute you must install curl.

GitHub Project

curl https://git.io/ -i -F "url=https://github.com/GITHUB_USERNAME/PROJECT_NAME.git" -F "code=CUSTOM_NAME"
  • Replace GITHUB_USERNAME with your GitHub account username or Organization username.
  • Replace PROJECT_NAME with your GitHub project name or Organization project name. Don't forget to put .git at the end of PROJECT_NAME.
  • Replace CUSTOM_NAME with your short custom name.
  • Example github.com/illvart/termux-alpine into git.io/termux-alpine.

GitHub Profile

curl https://git.io/ -i -F "url=https://github.com/GITHUB_USARENAME?" -F "code=CUSTOM_NAME"
  • Replace GITHUB_USERNAME with your GitHub account username or Organization username. Don't forget to put ? at the end of GITHUB_USERNAME.
  • Replace CUSTOM_NAME with your short custom name.
  • Example github.com/illvart into git.io/illvart.

GitHub Gist

curl https://git.io/ -i -F "url=GIST_URL" -F "code=CUSTOM_NAME"

Incorrect URLs

As of 23 September 2020, you can no longer request to revoke your outdated or incorrect shortened URLs by git.io.


Link to this gist git.io/shortname.

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