Introduction to GitHub
What is GitHub?
GitHub is a place where you can put your Git repositories. Think of it this way. On your local computer, you have your Git repository. Then, you make a GitHub remote for your local Git repository. That way, all your changes and commits will be reflected on the GitHub repository.
Why use GitHub?
GitHub is great because it allows you to make your code public, so that other people can see it and interact with it through pull requests and issues. If you don't want to make your code public, GitHub also allows private repositories. Even if you don't use GitHub to share your code, it's still a great place to store your code, in case your computer breaks or your house catches fire. Finally, GitHub is great for collaboration.
However, most if not all of what I have said applies to other places where you can host your repositories, like GitLab and Bitbucket. However, GitHub is the most popular option. In fact, Learnmonkey uses GitHub. Lots of other high-scale tech companies also host some open-source development projects on GitHub, like Microsoft and Meta (Facebook).