- Register GitHub Account
- Creating a GitHub Repository
- Converting GitHub RAW To CDN
The steps to use GitHub are very easy, as usual you have to register an account, create a repository, upload files and then we can install it on the blog.
Okay, let's look at the detailed steps below:
Register GitHub Account
The first step you have to register or create a GitHub account first. Please go to the GitHub.com site to register.
|Register your self|
Enter your new GitHub account details just like when you created your Facebook account. Next, verify the account via your email.
Creating a GitHub Repository
After completing registration and email verification, you will be directed to a page to create a new repository on GitHub.
Please fill in the Repository name with the repository name, select Public to save the file as well as your hosting. and to Initialize this Repository select it with add a README option . Then click the Create Repository button .
Repository here is a folder as well as a folder on your computer.
Next let's upload the file to GitHub. For example, here I create a repository named miusm-tech.com and the file we will upload is named miusmtechsafelink.js .
On the repository page (in this example it is named miusm-tech.com) please click Add file > Upload file .
If the file you uploaded was successful, you will see a new file in the repository.
Converting GitHub RAW To CDN
To get the raw file link on GitHub, please click on the file that we uploaded earlier, the miusmtechsafelink.js file . then the page will look like below:
Then we click the RAW button , it will be directed to our raw file link. Please copy the link in the browser address bar, something like this:
Well, then we first change the raw link into a CDN. So that we can put it on the blog. The way we use the service from raw.githack.com
Please visit raw.githack.com , then paste the raw link that was copied earlier on the top form, then two GitHub cdn links will appear below it.
We copy the cdn link on the left, namely Use this URL in production . An example of a link like this:
After converting raw to cdn, then we can install it on the blog. Examples like this:
The part I marked is a link from our cdn file on GitHub, Please change it to match your link.
I end this post.