无法推入Git.为什么? [英] Unable to push in Git. Why?
问题描述
这是我当前在Git中设置的分支机构
Here is my current branch setup in Git
A -> B -> C -> D -> E -> F (remotes/origin/master) -> G -> H -> I (personal/aconard/FXPricing)
-> G -> H -> I (remotes/origin/FXPricing)
提交B和提交G均来自提交A.本质上,我想做的是将整个分支重新置于master分支之上,如上所示.
Both commits B and G derive from commit A. Essentially, what I'm trying to do is rebase my entire branch on top of the master branch as shown above.
尝试插入Git(使用--force选项)时出现以下错误:
I am getting the following errors when I attempt to push in Git (using the --force option):
$ git push --force origin personal/aconard/FXPricing
Counting objects: 629, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (343/343), done.
Writing objects: 100% (580/580), 762.64 KiB, done.
Total 580 (delta 347), reused 416 (delta 230)
remote: + refs/heads/personal/aconard/FXPricing tmlight aconrad DENIED by fallthru
remote: error: hook declined to update refs/heads/personal/aconard/FXPricing
To ssh://git@dtml-orl-bld1/tmlight
! [remote rejected] personal/aconard/FXPricing -> personal/aconard/FXPricing (hook declined)
error: failed to push some refs to 'ssh://git@dtml-orl-bld1/tmlight'
我做错了什么?我注意到的一件事是我的用户名在此错误行上有错字:
What am I doing wrong? One thing I noticed is that my username has a typo on this error line:
remote: + refs/heads/personal/aconard/FXPricing tmlight aconrad DENIED by fallthru
它应该是"aconard"而不是"aconrad".这与为什么我不能推送更改有什么关系吗?
It should be "aconard" not "aconrad". Could this have something to do with why I can't push my changes?
推荐答案
在目标位置安装了一个挂钩,拒绝您的推送.目标是您控制的服务器吗?如果是这样,pre-receive
挂钩中有什么?
There is a hook installed on the destination that is refusing your push. Is the destination a server you have control of? If so, what is in the pre-receive
hook?
快速的Google搜索似乎暗示DENIED by fallthru
来自gitolite.您使用的是gitolite服务器吗?
edit: A quick google search seems to imply that DENIED by fallthru
comes from gitolite. Are you using a gitolite server?
这篇关于无法推入Git.为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!