Git.io is used for shortening GitHub URL's. If you go to the git.io homepage, you enter the URL you want to shorten and it randomly generates a git.io URL. However, you can use curl to make a custom URL. Pretty cool, eh?
If you don't know how to use curl, well than today is your lucky day! I will teach you how to use a specific part of it. To run curl (the only way I know how to do it is on Windows lol), first press the windows key, then Ctrl + V, like this:
Please note that I did this at 3AM, so this repository might not be that good lol.
Basically what you have to do is this:
curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"
So say I wanted to generate a custom URL to my homepage, https://github.com/DaCuteRaccoon. So the url parameter is https://github.com/DaCuteRaccoon
. I want my custom url to be https://git.io/DaCuteRaccoon. So I do:
curl https://git.io/ -i -F "url=https://github.com/DaCuteRaccoon" -F "code=DaCuteRaccoon"
You can find all my custom URLs here.