xdatamodel历史记录导致git push错误



我已经为xdatamodel文件启用了历史记录。从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'

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

最新更新