Git is a tool/software to push our code to repository like github, bitbucket, gitlab.
Github is a website/webapp where we create repository and keep our code with version control. version control means github or repository provides every committed code. It means suppose first time we commit and push a file with code and after that again i worked on that file and pushed it again. Then we can get the latest code as well as previous code, in particular commit id.
Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later.