【问题标题】:Error while pushing code to GIT after rebase变基后将代码推送到 GIT 时出错
【发布时间】:2019-11-30 00:21:22
【问题描述】:

我在 rebase 后将代码推送到 GIT 时遇到错误。我正在使用强制推送,但它也失败了。 我已经从开发中完成了 my_branch 的变基。

我试过了

git push --force origin my_branch

它也会给出错误..

DENIED by fallthru : (hook declined)
Enumerating objects: 52, done.
Counting objects: 100% (52/52), done.
Delta compression using up to 4 threads
Compressing objects: 100% (19/19), done.
Writing objects: 100% (32/32), 5.58 KiB | 1.39 MiB/s, done.
Total 32 (delta 8), reused 0 (delta 0)
remote: FATAL: + refs/heads/my_branch fmea/dev_fmea_maven_webapp kumard2 DENIED by fallthru
remote: error: hook declined to update refs/heads/my_branch 
To ssh://codex.cro.st.com/fmea/dev_fmea_maven_webapp.git
! [remote rejected] my_branch  -> my_branch  (hook declined)
error: failed to push some refs to 'ssh://gitolite@codex.cro.st.com/fmea/dev_fmea_maven_webapp.git'

我期待使用 force push ,它应该可以工作。

【问题讨论】:

  • "hook denied" 表示仓库有一个钩子拒绝了你的推送。 Git 会很好,但是有人编写了禁止它的自定义代码。与您的回购所有者交谈。

标签: git git-push


【解决方案1】:

DENIED by fallthru”指向一个由gitolite管理的远程仓库。

您可以申请admin for tracing the gitolite access control decision

gitolite access -s dev_fmea_maven_webapp fmea W+ any

这将使您对现有规则有所了解。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-11-15
    • 1970-01-01
    • 1970-01-01
    • 2019-10-01
    • 2019-07-30
    • 1970-01-01
    • 1970-01-01
    • 2012-11-05
    相关资源
    最近更新 更多