Closed MtechnikX closed 8 years ago
What's the point of locking the branches ? We are the only ones that can push.
Because we have a coupe of others who were interested in using this and i dont want it to mess ujp the main or backup branches
Anybody can clone down the repo all they want, it's a public repo. But that doesn't mean they can push changes, they aren't a contributor to the repo. If they are wanting to do so, then they create a pull request that seeks permission to merge their changes. So there isn't a need to protect the branches. The protection you are thinking of is already part of the nature of how github functions.
I keep forgetting that :8ball:
I'll close this then
hmm. ok, just a few changes and good.
I locked a couple of branches for time being to protect what we have and disabled force pushing, prevent branches from being deleted, and require status checks before merging. However, if you have the admin permission to unlock it for a reason, then you can, just be sure to relock it back afterwords if there are any complications. Again, do not leave it unlocked.