Before execute you must install curl
.
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 ofPROJECT_NAME
. - Replace
CUSTOM_NAME
with your short custom name. - Example github.com/illvart/termux-alpine into git.io/termux-alpine.
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 ofGITHUB_USERNAME
. - Replace
CUSTOM_NAME
with your short custom name. - Example github.com/illvart into git.io/illvart.
curl https://git.io/ -i -F "url=GIST_URL" -F "code=CUSTOM_NAME"
- Replace
GIST_URL
with your Gist url. - Replace
CUSTOM_NAME
with your short custom name. - Example https://gist.github.com/illvart/7b9e0d150bc388e7c8fd297fc47dd949 into git.io/shortname.
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.