linux – 如何阻止在远程主机上分支

有没有办法阻止代码推送直接掌握?我尝试在.git / hooks / update中添加一个脚本: #!/bin/shif [ $USER != git-repo-admin ];then if [ $1 == refs/heads/master ]; then echo Manual pushing to this repo is restricted e

返回顶部