我试图推动我的"主人"存储库从git远程到我创建的另一个远程。 (旧的git远程有很多错误,我似乎无法解决它)当我尝试推动主分支我得到这个错误:
Writing objects: 100% (1002/1002), 144.73 KiB | 0 bytes/s, done.
Total 1002 (delta 362), reused 1002 (delta 362)
POST git-receive-pack (148344 bytes)
remote: /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.10.6/lib/bundler/shared_helpers.rb:2:in `require': no such file to load -- rubygems (LoadError)
remote: from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.10.6/lib/bundler/shared_helpers.rb:2
remote: from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.10.6/lib/bundler/setup.rb:1:in `require'
remote: from /usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.10.6/lib/bundler/setup.rb:1
remote: error: hook declined to update refs/heads/master
To http://192.168.45.92/root/old_git.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'http://192.168.45.92/root/old_git.
任何帮助都会非常感谢。
答案 0 :(得分:0)
尝试删除可能指向旧遥控器的后续内容
rm -rf **/hooks/gitolite-hooked
rm -rf **/hooks/gl-pre-git.hub-sample
rm -rf **/hooks/post-receive.mirrorpush