I have a pretty basic problem I'm trying to solve on Github. I have a private repository (via an Organization), and I need to figure out the best way to set it up so that my team can do pushes to a branches beneath the master branch, but not the master branch itself.
I know one way would be to have two separate private repositories, one which would be the "master" repository, and the other that would be the "staging" repository. And then only I would have access to the "master" repo, but the team would have access to the "staging" repo. And then I would merge the changes from "staging" to "master".
But I'm not sure I understand how to go about creating the "staging" repo off the "master" repo, nor how to merge changes back into "master".
Here is a rough diagram of what I'm trying to accomplish (above the line, "master" repo, below the line, "staging" repo):
master (only me)
-----------------------------
--> staging (team)
--> feature 1
--> team member 1
--> feature 2
--> team member 2
--> team member 3
Any ideas?