First of all we need to make a stable website script using any language here i am using HTML. then login into github then create a repository as shown in below snapshot. then use below mention commands in git bash cmd. git init git status git add README.md git status git commit -m "first commit" git branch -M master git remote add origin https://github.com/DpkTewatia/Dpk_Tewatia.git git push -u origin master …or push an existing repository from the command line git remote add origin https://github.com/DpkTewatia/Dpk_Tewatia.git git branch -M master git push -u origin master Finally your static website hosted on GitHub and whole source code added on GitHub repository.