You can store code locally in git, and only use GitHub as a backup. This is the "distributed" part of "distributed version control"