Hosted straight from your own GitHub repository. Simply edit, push, along with your changes are real time.
You obtain one web web site per GitHub account and company, and project that is unlimited. Let‘s get going.
Develop a repository
Head over to GitHub and produce a repository that is new username.github.io, where username will be your username (or company title) on GitHub.
In the event that very first the main repository does not precisely suit your username, it won’t work, so remember to obtain it appropriate.
just exactly What git customer have you been utilizing?
Down load GitHub Desktop
GitHub Desktop is a way that is great utilize Git and GitHub on macOS and Windows.
Clone the repository
Go directly to the folder where you desire to keep any project, and clone the repository that is new
$ git clone https://github.com/username/username.github.io
Clone the repository
Click on the “create in Desktop” button. As soon as the GitHub desktop software starts, save the project.
In the event that software does not open, introduce it and clone the repository through the application.
Clone the repository
After completing the installation, mind back once again to GitHub.com and refresh the web page. Click on the “create in Desktop” button. If the GitHub desktop software starts, save the task.
In the event that application doesn’t start, introduce it and clone the repository through the software.
Hello World
Enter the task folder and include an index.html file:
$ echo “Hello World” > index.html
Create an index file
Grab your website builder srating, inc text that is favorite editor include an index.html file to any project:
Add, commit, and push your modifications:
$ git commit -m “Initial commit”
$ git push -u origin master
Commit & publish
Enter the repository, commit your changes, and press the button that is publish.
…and you are done!
Turn on a web web browser and head to https://username.github.io.
Utilize a style, or begin with scratch?
You’ve got the solution to focus on one of many themes that are pre-built or even produce a website from scratch.
- Select a layout
- Begin with scratch
Repository Settings
Mind over to GitHub.com and produce a new repository, or head to an one that is existing. Go through the Settings tab.
Theme chooser
Scroll down seriously to the GitHub Pages area. Press Select a layout.
Choose a style
Select one of several themes through the carousel at the very top. When you are done, click Select theme in the right.
Edit content
Utilize the editor to incorporate content to your website.
Enter a commit remark and click Commit changes below the editor.
Create an index file
Mind over to GitHub.com and produce a brand new repository, or head to an one that is existing. Click on the Create new file switch.
Hello World
Name the file index.html and kind some HTML content into the editor.
Commit the file
Scroll into the bottom associated with web page, compose a commit message, and commit the brand new file.
Repository Settings
Go through the Settings tab and scroll right down to the GitHub Pages area. Then find the master branch supply and then click regarding the Save switch.
…and you’re done!
Turn up a web web browser and head to http://username.github.io/repository.
Running a blog with Jekyll
Utilizing Jekyll, you’ll blog making use of breathtaking Markdown syntax, and and never have to cope with any databases. Discover ways to put up Jekyll.
Custom URLs
Desire to make use of your custom that is own domain a GitHub Pages web web site? Just produce a file known as CNAME and can include your Address. Find out more.
Discover ways to produce customized 404 pages, use submodules, and find out about GitHub Pages.