Git is a version control system.
GitHub is a cloud platform for collaborative managing, publishing and sharing of your software projects using the git version control system. Alternatives are, for example, Gitea, GitLab and Bitbucket.
There is a setup guide on GitHubs help page.