- Go to your browser
- goto github.com
- sign in with your credentials
- On the top right you will see a new icon with "New" Written on it.
- Click on the icon
- In the repository name write it as .github.io
- Select a template you want to apply.
Or you can clone this repo for a template it is hosted in https://anuragsahu.github.io/SomeFancyThingsInDevelopment/
- download the template
- check if the template have any .git file
- if there is .git file delete it. (This file is hidden if it exits at all, so in ubuntu press clt+ h or in windows press show hidden files to view it.)
- now open terminal and navigate to your current working directory
- type in the following commands
sudo apt-get update
sudo apt-get install gitverify that git has been installed
git --versionif it give output like "git version 2.9.2"
- Configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create:
git config --global user.name "Anurag Sahu"
git config --global user.email "anuragsahu926@gmail.com"11.now in terminal type the following commands
git init .
git add .
git commit -m "First Commit"
git remote add add origin https://github.com/<username>/<username>.github.io.git
git push -u origin master- Goto settings of your repo and scrol down for Github pages sections and under that select your source to master breanch instead of none.
- Now that you have put in so much effort onto the website its time you should see the website.
- Open a new tab on the browser and open
- .github.io
- And Tada it is done.
** Also check for any _config.yml change the base url in config.yml file to .github.io