无法push到gitlab:“ ! [remote rejected] master -> master (pre-receive hook declined) ”
匿名2023/07/31 19:52:17提问
    工具使用lab1studentunanswered
364

无论是docker的webshell还是自己连vpn,在使用git push命令时都会遇到失败:

Warning: Permanently added '172.16.13.236' (ECDSA) to the list of known hosts.                                                            
Counting objects: 3, done.                                                                                                                
Writing objects: 100% (3/3), 204 bytes | 0 bytes/s, done.                                                                                 
Total 3 (delta 0), reused 0 (delta 0)                                                                                                     
remote: GitLab: The project you were looking for could not be found.                                                                      
To git@172.16.13.236:cherudim9/ucore_lab.git                                                                                              
 ! [remote rejected] master -> master (pre-receive hook declined)                                                                         
error: failed to push some refs to 'git@172.16.13.236:cherudim9/ucore_lab.git'  

按照往年的帖子,还有网上的解答,试图通过修改project setting中的protect_branch,但是没法进入这个页面,会直接转到project的首页。。

回答(2
    推荐问答
      Simple Empty
      暂无数据