博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Git push提示pre-receive hook declined
阅读量:7046 次
发布时间:2019-06-28

本文共 1347 字,大约阅读时间需要 4 分钟。

master:local
auto@ubuntu:~/src/code/git pushCounting 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 git@gitlab:code.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 'git@gitlab:code.git'auto@ubuntu:~/src/code/$ git branch * develop-yexf  master
1. one way:delete another branch:
auto@ubuntu:~/src/code/git branch -d master Deleted branch master (was 66158d1).auto@ubuntu:~/src/code/$ git pushCounting 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/code/merge_requests/new?merge_request%5Bsource_branch%5D=develop-yexfremote: To git@scm-gitlab:code.git   66158d1..b5392b8  develop-yexf -> develop-yexf
2. another way:git push branch(specify)
auto@ubuntu:~/src/code/$ git push origin develop-yexf
 
 

  

转载于:https://www.cnblogs.com/sciapex/p/7483939.html

你可能感兴趣的文章
JAVA实现二叉树
查看>>
如何制作iso文件
查看>>
构建openssl debug版
查看>>
jquery 的datatables插件问题
查看>>
Putty密钥(PrivateKey)导入SecureCRT
查看>>
移动环境下DNS解析失败后的优化方案
查看>>
TeeChart的最小步长和最大步长
查看>>
spring+springMVC中使用@Transcational方式管理事务的必须要配的东西。
查看>>
网络全民创业:95%电商生活得非常痛苦
查看>>
三种方法写监听事件
查看>>
hdu 2899 hdu 3400 三分/几何
查看>>
[转]World Wind学习总结一
查看>>
算法题一道
查看>>
滴滴快车奖励政策,高峰奖励,翻倍奖励,按成交率,指派单数分级(4月14日)...
查看>>
iOS开发UI篇—使用UItableview完成一个简单的QQ好友列表(一)
查看>>
C# Struct结构体里数组长度的指定
查看>>
感知机原理小结
查看>>
Java动态代理与Cglib库
查看>>
系统性能不够原因可能是cpu不够,内存不够等等
查看>>
让div在另一个div中居中
查看>>