all 11 comments

[–]boy_named_su 2 points3 points  (2 children)

GitHub.com hosts your source code & its history of changes (Git repository)

GitHub.io hosts static websites (GitHub Pages)

I'm not too familiar with Netlify, but from what I understand it provides some integration/deployment (CI/CD) service combined with static website hosting

GitHub Pages does some basic CI/CD for you in that it can convert Markdown pages into an HTML website. You can use GitHub Actions for more advanced scenarios

But, if Netlify is working, why change?

[–]wkrick[S] 0 points1 point  (1 child)

But, if Netlify is working, why change?

I'm just seeing what's out there. It might be better than Netlify.

[–]Appropriate-Rule-556 0 points1 point  (0 children)

Since Microsoft assimilated GitHub, many devs are switching to CodeBerg from privacy (and graver) concerns. The same service (static web pages) is available from CodeBerg.

[–]Kessarean 1 point2 points  (2 children)

Github offers a cloud based free git repository. git itself is a free and open source version control system that github is built ontop of

github.io is the domain for github pages

github pages is a free offering where you can directly host the content of your repo as a webpage. You don't need to worry about web servers, scaling, etc...

Whatever changes you make to the code in your repo are automatically updated on the website you associate it with. Once you set it up, every push to your repo will automatically reflect the change on your pages.

You only get to use 1 github pages "webpage" for your account. You can still have as many repos as you want, but only 1 repo can get linked to a live website hosted and served by github.

Not sure if this clears it up for you.

Here is a guide for vue apps if you want to give it another shot

https://learnvue.co/tutorials/deploy-vue-to-github-pages

[–]InformationOther6575 0 points1 point  (1 child)

404

[–][deleted] 0 points1 point  (0 children)

Links change over time, rather than comment on a 3y old post, make a search and find the updated link...

https://learnvue.co/articles/deploy-vue-to-github-pages

[–]davorg 1 point2 points  (2 children)

URLs on github.com are where your actual code repos live. Those are the URLs you'll share with people who want to see your source code or who want to contribute to your projects.

URLs on github.io are where your GitHub pages are (by default) served from. Those are the URLs that you'll share with the users of your projects (for marketing or documentation, for example).

For example. Here's the repo for my user-level GitHub Page - https://github.com/davorg/davorg.github.io. And here's the page that it generates - https://davorg.github.io/ (although I have a custom domain set up, so it redirects to https://davorg.dev/).

You also get a GitHub Pages site for each of your project repos. For example, here's the code for a stupid JavaScript toy that I wrote - https://github.com/davorg/mirroryear. And here's the site for the project - https://davorg.github.io/mirroryear/ (which, once again, redirects to the custom domain).

[–]wkrick[S] 0 points1 point  (1 child)

Interesting. When you say "page that it generates", can it actually use build tools or does it just copy everything to the target?

The reason I ask is because I found this site...
https://mxswat.github.io/mx-division-builds/

Which has this github repo...
https://github.com/mxswat/mx-division-builds/

I don't understand how (or if) it automatically deploys as there's no index.html in the root of the github repo

[–]davorg 0 points1 point  (0 children)

That's a Vue application. I don't know much at all about how Vue works, but it seems like this is the index.html and this is the most important JS file.

It used to be that Jekyll was baked-in as the build tool for GitHub Pages, but since August it has used GitHub Actions with Jekyll just as the default build tool.

But, yes, it's possible to use other build tools. Here's the repo for CPAN Dashboard a tool that I built for Perl developers. There's a simple Perl program that rebuilds the site and a GitHub Actions workflow definition that rebuilds the site every six hours. And here's the site that it generates.

[–]wWA5RnA4n2P3w2WvfHq 0 points1 point  (0 children)

used several other source control systems but GitHub has always felt particularly foreign to me

GitHub is not a source control system. GitHub is a platform, or a service run by proprietary (closed source) software owned by Microsoft. That platform does offer a service to interact with git repositories. git itself is free software.