Even though their names sound the same, they are two completely different things.
Git: It is a Version Control Software that helps you to keep a track of all the changes you made in your source code by storing each change as a “version”.
GitHub: It is a website that lets you host Git repositories. This is the place where you store your production ready code.
It is like Facebook for developers. Instead of pictures and videos, you share your code. ;)