Git is a version control system that allows developers to track changes to files. It uses a distributed model where developers can have their own repository and sync changes with a remote server. GitHub builds on Git by providing a web-based graphical interface and additional features for collaboration, like issue tracking and wikis. Branching in Git allows developers to work independently on different versions of code without affecting the main version until they merge their changes.