github - Git corrupt : error object file is empty -


i had performed local changes repository , committed them local repo. while fetching code repository system power got lost. result, git repo got corrupted. when i'm checking out commit id (local) shown in git reflog shows

error: object file ./objects/xx/yyyyyyyyyyyy empty.

fatal: loose object xxyyyyyyyyyyyy corrupt.

when doing git status shows files corresponding object files deleted. result i'm not able git hash-object -w object-path. since local commit, can't replace .git folder remote server local repo.

is there way using can restore commit , avoid redoing it?


Comments

Popular posts from this blog

iis - ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500 -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -