- 2025年05月13日
- 星期二
有没有办法阻止代码推送直接掌握?我尝试在.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
有没有办法阻止代码推送直接掌握?我尝试在.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