0

xcdatamodel ファイルの履歴を有効にしました。xcode からは、端末からの 1 つのファイルのように見えます。その一連のフォルダーです。

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 に答える