Home
Softono
git-dot-io

git-dot-io

Open source JavaScript
16
Stars
70
Forks
5
Issues
0
Watchers
3 years
Last Commit

About git-dot-io

git-dot-io is a deprecated tool designed to create custom URL shorteners using the official git.io service. Originally, git.io was restricted to shortening links pointing only to GitHub projects. This project bridges that gap by allowing users to redirect git.io links to any external website. The workflow involves creating a specific HTML or JSON entry in the project repository that defines the destination URL, often using a custom path like guest entries. Once the redirect path is set up on the intermediate domain, users can utilize the standard git.io interface to register a short alias pointing to their custom path. The tool supports both random short URLs generated via the web interface and vanity custom URLs created through the command line using curl. Users can specify a preferred code to generate personalized short links like git.io/myname. The project emphasizes that while it facilitates these redirects, it does not host or verify the content of the destination sites, placing responsibility on the use

Platforms

Web Self-hosted

Languages

JavaScript

The documentation is not up to date.

To add a new redirect, you need to add it on data/redirect.json




Redirect to your websites using git.io

Why?

Git.io is a URL shortening service that will redirect to your Github projects. If you try to redirect to other domain out of Github.com (like your website) you won't be able to do it.

So this project will help you redirect to any website using git.io super easy!

How to do it?

not-found

  • Go to _redirects.

  • Create an .html file with the name of the link you want to make.

  • Inside the file you need to copy the code below and paste it on you file, change it with you content.

---
permalink: /your-beautiful-link
destination: http://your-beautiful-site.com
---

So is that all?

No!

Now you can go to Git.io and copy gitdotio.github.io/your-beautiful-link and paste your link there and when you are done, you will have a git.io/random-name that will be redirected to your-beautiful-site.com.

Cons:

The Git.io website will only offer random short URLs.

So what if I want a mycool-name?

Well to have your custom vanity URL with git.io you will need to use your command line.

$ curl -i https://git.io -F "url=https://gitdotio.github.io/your-beautiful-link" -F "code=mycool-name"

where you will need to set the url= parameter with the link created by gitdotio.github.io and code= with the value you'd like to set.

At this point when you type git.io/mycool-name that will be redirected to your-beautiful-site.com

Note ⚠️

Websites won't be checked, but keep in mind to don't redirect to any abusive, racist or sexist website.

To use this service since it's owned by Github, Inc you will need to agree with the following:

Who to follow?

Carlos Abraham Logo
Abraham Hernandez

License

The UNLICENSE