How to Host a Website On Github
3 min read
How to Get Started with Git and Github -https://www.youtube.com/watch?v=rWhnsx4PDQU
How To add a Custom Domain On Github Pages- https://youtu.be/mPGi1IHQxFM
In this video I am going to show How to Host a website on Github Using Github Pages feature. We can host a static HTML website on Github. This method can be used to host other Html websites also like ReactJs, AngularJS, Bootstrap based websites also. It is really simple and you can have a website hosted on Github in few minutes. You can Publish and share your own website without any cost with GitHub. This step by step Guide to Creating and Hosting a Personal Website on GitHub is easy to follow.
The steps are as follows
1. Create a GitHub account
2. Download and install the git on your computer
3. Create a new GitHub project
4. Copy your HTML files to the new Repository folder
5. Publish your website
* Github URL: http://github.com
* Repository name: username.github.io/project-name
★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ http://bit.ly/2vsuMaS ⚫️ http://bit.ly/2GOaeQB
Java Programming Course ➡️ http://bit.ly/2GEfQMf ⚫️ http://bit.ly/2Vvjy4a
Bash Shell Scripting Course ➡️ http://bit.ly/2DBVF0C ⚫️ http://bit.ly/2UM06vF
Linux Command Line Tutorials ➡️ http://bit.ly/2IXuil0 ⚫️ http://bit.ly/2IXukt8
C Programming Course ➡️ http://bit.ly/2GQCiD1 ⚫️ http://bit.ly/2ZGN6ej
C++ Programming Course ➡️ http://bit.ly/2V4oEVJ ⚫️ http://bit.ly/2XMvqMs
PHP Programming Course ➡️ http://bit.ly/2XP71WH ⚫️ http://bit.ly/2vs3od6
Android Development Course ➡️ http://bit.ly/2UHih5H ⚫️ http://bit.ly/2IMhVci
C# Programming Course ➡️ http://bit.ly/2Vr7HEl ⚫️ http://bit.ly/2W6RXTU
JavaFx Programming Course ➡️ http://bit.ly/2XMvZWA ⚫️ http://bit.ly/2V2CoAi
NodeJs Programming Course ➡️ http://bit.ly/2GPg7gA ⚫️ http://bit.ly/2GQYTQ2
Jenkins Course For Developers and DevOps ➡️ http://bit.ly/2Wd4l4W ⚫️ http://bit.ly/2J1B1ug
Scala Programming Tutorial Course ➡️ http://bit.ly/2PysyA4 ⚫️ http://bit.ly/2PCaVj2
Bootstrap Responsive Web Design Tutorial ➡️ http://bit.ly/2DFQ2yC ⚫️ http://bit.ly/2VoJWwH
MongoDB Tutorial Course ➡️ http://bit.ly/2LaCJfP ⚫️ http://bit.ly/2WaI7Ap
QT C++ GUI Tutorial For Beginners ➡️ http://bit.ly/2vwqHSZ
★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare – https://skillshare.eqcm.net/r1KEj
Data Science – http://bit.ly/2lD9h5L | http://bit.ly/2lI8wIl
Machine Learning – http://bit.ly/2WGGQpb | http://bit.ly/2GghLXX
Artificial Intelligence – http://bit.ly/2lYqaYx | http://bit.ly/2NmaPya
MERN Stack E-Degree Program – http://bit.ly/2kx2NFe | http://bit.ly/2lWj4no
DevOps E-degree – http://bit.ly/2k1PwUQ | http://bit.ly/2k8Ypfy
Data Analytics with R – http://bit.ly/2lBKqz8 | http://bit.ly/2lAjos3
AWS Certification Training – http://bit.ly/2kmLtTu | http://bit.ly/2lAkQL1
Projects in Java – http://bit.ly/2kzn25d | http://bit.ly/2lBMffs
Machine Learning With TensorFlow – http://bit.ly/2m1z3AF | http://bit.ly/2lBMhnA
Angular 8 – Complete Essential Guide – http://bit.ly/2lYvYRP
Kotlin Android Development Masterclass – http://bit.ly/2GcblsI
Learn iOS Programming Building Advance Projects – http://bit.ly/2kyX7ue
★★★ Follow ★★★
My Website – http://www.codebind.com
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
How To add a Custom Domain On Github Pages- https://youtu.be/mPGi1IHQxFM
$ git push -u origin master
Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 8 threads
Compressing objects: 100% (8/8), done.
Writing objects: 62% (5/8)
struck here
"404
There isn't a GitHub Pages site here.
If you're trying to publish one, read the full documentation to learn how to set up GitHub Pages for your repository, organization, or user account. " i get this, so whats wrong here?
$ git push -u origin master
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/hfmasif/hfmGlozzom.git'
didn't ask me username and password….why?
Save your time: 05:52
Thank you bro. very simplified tutorial
This was another good video, everything I needed, nothing I didn't. Thanks again!
'Git Bash Here' option isn't coming up for me when I right-click index.html file. Can I type something into Git Bash to open it up there?
I have a repo full of files but all I see on the GitHub page is the repo name in some H1 format. It's as if the whole branch was invisible for GitHub. Odd. Any suggestions? Thanks
It is a good info and easy to follow. How to publish the updated content of the website.
Skip to 5:45 for Github Pages ( for developers who already know Github basics )
Thank you so much! I just got my first static site on GitHub, thanks to this video. 🙂
for PHP , mySql file for a Ecommerce site does it work ? maybe not .. plz explain whats the process?
Very clear and precise instruction. thank you so much. BTW I've just subscribed this channel
does this support dynamic websites?
For example with PHP and MYSQL?
When I pushed -u origin master, it did not ask for a user name. The comment said everything up to date. Not sure what to do from here.
Thank you for the video, very helpful even though I did it differently in the beginning because the desktop aplication for GitHub works differently I supose (I never used it before)
Love u man (no homo)
You're a legend full respect. Please, teach me!
when i was writing the git remote add origin in the git, i wrote wrong the https://, and i dont know how to fix it
Didnt work, why am i getting error 404
Awesome tutorial, simple and informative. Thanks for helping me publish my first website!
Why does it say 404 page not found?
git init
git status
git add .
git status
git commit -m "first commit" .
git status
git remote add origin https://github.com/username/repo
git push -u origin master
When I clicked source: master branch, the page reloaded but there was no message giving a link to my page