I'm building a browser game. Eventually I want to put ads on it, sell in-game currency, build a private company around it, etc.
I want to save my code in a Github repository. As far as Github controls go it seems like you can begin a repository as public and then switch it to private at any time (that is if you have a premium account or it's your first private repo for a free account). It seems a bit weird to me that someone could say something is open-source, totally free, have a bunch of random people work on it, and then all of the sudden that one person runs off with the finished game. What are the legal things to consider here, and do I need to begin my repo as private?
I normally use GNU GPL-3.0 license for open source projects, but I'm also curious if the answer would be different for other popular licenses like Apache 2.0 or MIT. I'm locally in the New York City, USA area. Thanks.