Getting fatal error on push and clone the git -
i able force , pull git remote till yesterday. don't know (or remember) did today can't force remote git repo. getting next error
$ git force counting objects: 83, done. delta compression using 8 threads. compressing objects: 100% (16/16), done. writing objects: 100% (17/17), 1.32 kib | 0 bytes/s, done. total 17 (delta 12), reused 0 (delta 0) remote: fatal: unresolved deltas left after unpacking error: unpack failed: unpack-objects abnormal exit //myserver/git/apps/myapp.git ! [remote rejected] master -> master (unpacker error) error: failed force refs '//myserver/git/apps/myapp.git'
and when seek clone 1 time again getting error
$ git clone //myserver/git/apps/myapp.git/ cloning 'myapp'... done. fatal: unable read tree 18295307f1270da3c09e3de91890652af4ff7ca8 warning: clone succeeded, checkout failed. can inspect checked out 'git status' , retry checkout 'git checkout -f head'
both
git status
and
git checkout -f head
gives error
fatal: unable read tree 18295307f1270da3c09e3de91890652af4ff7ca8
can help me understand went wrong , how can prepare it?
thanks
so solved issue. luckily remote repo date no error. verify object command
git fsck --full
i saw dangling tree. wen server , re-create missing object local copy. continuous check , re-create able bring missing object , able push. evey thing date now.
reason corrupt local re-create may delete branch. have done.
git
No comments:
Post a Comment