Git is a distributed revision control and source code management (SCM) system.
Github is a place for you to host your project. The other can fork up your project, give patches, contribute, and discussion.
Help on setup Github: http://help.github.com/mac-set-up-git/
And the Pro Git Book: http://progit.org/book/ch2-2.html