Git push提示pre-receive hook declined
Posted Poffmd
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git push提示pre-receive hook declined相关的知识,希望对你有一定的参考价值。
[email protected]:~/src/SOC/ git push Counting objects: 5, done. Delta compression using up to 4 threads. Compressing objects: 100% (5/5), done. Writing objects: 100% (5/5), 435 bytes | 0 bytes/s, done. Total 5 (delta 4), reused 0 (delta 0) remote: GitLab: You are not allowed to push code to protected branches on this project. To [email protected]:SOC.git ! [remote rejected] develop-yexf -> develop-yexf (pre-receive hook declined) ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ‘[email protected]:SOC.git‘ [email protected]:~/src/SOC/ $ git branch * develop-yexf master [email protected]:~/src/SOC/ git branch -d master Deleted branch master (was 66158d1). [email protected]:~/src/SOC/ $ git push Counting objects: 5, done. Delta compression using up to 4 threads. Compressing objects: 100% (5/5), done. Writing objects: 100% (5/5), 435 bytes | 0 bytes/s, done. Total 5 (delta 4), reused 0 (delta 0) remote: remote: To create a merge request for develop-yexf, visit: remote: http://scm-gitlab/SOC/merge_requests/new?merge_request%5Bsource_branch%5D=develop-yexf remote: To [email protected]:SOC.git 66158d1..b5392b8 develop-yexf -> develop-yexf [email protected]:~/src/SOC/ $ git branch * develop-yexf
以上是关于Git push提示pre-receive hook declined的主要内容,如果未能解决你的问题,请参考以下文章
Git 'pre-receive' 钩子和 'git-clang-format' 脚本可靠地拒绝违反代码样式约定的推送
idea push项目到git提示Push rejected怎么解决