Is there any way to block code push directly to master? I tried adding a script in .git/hooks/update:
.git/hooks/update
#!/bin/sh if [ $USER != \"git-repo-admin\" ];
You can go to repo settings -> Branches
Git asks which branch you want to protect