What are GitHub Pages?
GitHub Pages is a GitHub tool that allows you to build a webpage from a
repository of files in your GitHub account. You can host a website using
GitHub Pages for free without having to set up a web server or acquire a
domain name. GitHub Pages may be used to host webpages for open-source
projects, small enterprises, and more, in addition to personal websites.
What are the Benefits of GitHub Pages?
As you may expect, GitHub Pages is ideal for publishing websites. You may
develop a website with any static website generator, such as Jekyll or Hugo,
and then upload it to GitHub Pages. To utilize GitHub Pages, you must first
establish a repository that is named after your username, followed
by.github.io. So, the URL for my GitHub Pages website would be
https://github.com/username.github.io.
Setup is quick and simple, and you can be up and running in
minutes.
How do I use GitHub Pages?
GitHub Pages, as you might expect, are ideal for publishing web pages. You
may develop a website using any static website generator, such as Jekyll
or Hugo, and then publish it to GitHub Pages. To utilize GitHub Pages, you
must first establish a repository and name it after your username,
followed by.github.io. So, my GitHub Pages website would be available as
https://github.com/username.github.io.
Setup is quick and simple, and you can get started in minutes.
How to Get GitHub Subdomain With GitHub:-
Step 1:- First Go To GitHub and Complete Login Or Signup Process.Step 2:- Then Click on Repository Section and Click On Create New Repository.
Step 3:- Then Add Now Repository
Name For Example- yourusername.github.io.
| Add Repository Name For Example :- YourUserName.github.io |
Your User Name Required.
I Created this github repository a long time ago, so we have shown by creating a new repository for example.
Step 4 :- Now Your Repository Created Successfully Look Like This .
| Your Repository Created Successful |
Step 5 :- Then Click on Setting Icon Like This .
Step 6 :- Then Click on Pages Section.
Step 7 :- After Select Branch
main and Path /(root) , Now Click on Save.Step 8 :- Now your Github Pages Successfully Created and Published.
Now Your Github Pages Url For Example :- yourusername.github.io
Source:
https://www.smarttechmukesh.com/
