This is my first time setting up a git server, so I don't really know what I am doing yet. Anyways, I have a git server setup with a user, What I want is to have multiple developers that can create their own branches and push the branches to origin, but I don't want them to push anything to master; an admin will merge after a code review. Is that possible?
Git prevent push to master
git
Related Topic
- How to set up multi users on dev server with git and github
- Git clone/push/pull – where’s that username comes from
- Trying to create a git repo that does an automatic checkout everytime someone updates origin
- Git pull-push giving error
- How to work with a single git repo on 2 servers: production and testing
Best Answer
Gitolite can do this for you. There's no way for you to set this up with the default git setup.