Skip to main content

How to Host any stable website on github

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.





Comments

Popular posts from this blog

Web Development

  WEB DEVELOPMENT FOR FULL STACK DEVELOPMENT C# .net core  .net core API Learn above mentioned course using "freecodecamp" youtube channel UI UI Frame Angular React JS Blazor PHP CSS BOOTSTRAP "Yahoo Baba" youtube channel