And what happens if GitHub is down or your internet is down?
Git is designed to work offline. You don't need an internet connection to use it since you have your local copy of the repository that you can sync when you're connected again. And GitHub's up time is virtually 100%.