Github is super-mega-popular for a reason--going with the flow here is a good idea. (The majority of code can be left public because nobody's really going to care--if you need privacy, Bitbucket also ...
Learn how to manage a codebase with Git including setting up a repo, using branches and pull requests, and merging changes. No matter what programming language you use, no matter what operating system ...