Git is a distributed version control system created in 2005 by Linus Torvalds that allows for easy branching and merging of code changes. GitHub, founded in 2008, is a code hosting platform for Git repositories that added social features like collaboration through pull requests and review comments. GitHub's success is attributed to its responsive and approachable interface as well as its encouragement of open source development through features like social coding and continuous integration.