【发布时间】: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 会很好,但是有人编写了禁止它的自定义代码。与您的回购所有者交谈。