0

我已经为 xcdatamodel 文件启用了历史记录。从 xcode 看来,它似乎是来自终端的一个文件,它是一组文件夹

my.xcdatamodeld/

      my 2.xcdatamodel
      my.xcdatamodel

由于此错误,我无法将其传送到我的远程 git 存储库

 indmacsunelama$ git push
 Counting objects: 19, done.
 Delta compression using up to 2 threads.
 Compressing objects: 100% (13/13), done.
 Writing objects: 100% (14/14), 34.11 KiB, done.
 Total 14 (delta 5), reused 7 (delta 1)
 remote: usage: git cat-file (-t|-s|-e|-p|<type>|--textconv) <object>
 remote:    or: git cat-file (--batch|--batch-check) < <list_of_objects>
 remote: <type> can be one of: blob, tree, commit, tag
 remote:     -t show object type
 remote:     -s show object size
 remote:     -e exit with zero when there's no error
 remote:     -p                    pretty-print object's content
 remote:     --textconv            for blob objects, run textconv on object's content
 remote:     --batch               show info and content of object standard input
 remote:     --batch-check         show info about objects fed from the standard input

 remote: error: hook declined to update refs/heads/master
 To git://mylinuxbox.us.spec.com/mobile.git
 ! [remote rejected] master -> master (hook declined)
 error: failed to push some refs to 'git://mylinuxbox.us.spec.com/mobile.git'
4

1 回答 1

0

这些错误表明您在远程存储库中安装了一个错误的钩子。检查远程服务器上的hooks子目录mobile.git并查看已启用的挂钩。似乎钩子git cat-file在某些时候被滥用了。

于 2011-08-08T08:35:20.703 回答