The main thing github is/does source code versioning/management/control.
You always have your source code "checked in" even if your local computer crashes and loses everything.
Everytime you make changes you can "check in" different version. If something breaks, you can go back and see what changes were made.