We got a necessity to fetch a zipball of a private repo. For public ones it\'s pretty easy either through GitHub API or manually (https://github.com/user/repo/zipball/ma
You can use Basic Authentication or Token based method. See https://help.github.com/articles/downloading-files-from-the-command-line for more details.