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_USERNAMEwith your GitHub account username or Organization username. - Replace
PROJECT_NAMEwith your GitHub project name or Organization project name. Don't forget to put.gitat the end ofPROJECT_NAME. - Replace
CUSTOM_NAMEwith 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_USERNAMEwith your GitHub account username or Organization username. Don't forget to put?at the end ofGITHUB_USERNAME. - Replace
CUSTOM_NAMEwith 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_URLwith your Gist url. - Replace
CUSTOM_NAMEwith 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.