Attempting to use git commands results in fatal error -


this question has answer here:

i'm trying pull class server error whenever try:

error: object file .git/objects/6d/6a0de342a65950d909883a1057ce117b241945 empty error: object file .git/objects/6d/6a0de342a65950d909883a1057ce117b241945 empty fatal: loose object 6d6a0de342a65950d909883a1057ce117b241945 (stored in .git/objects/6d/6a0de342a65950d909883a1057ce117b241945) corrupt 

anyone know why may be? seems git corrupted, i'm @ loss how i'd go fixing this.

first, should run git fsck check other corrupted objects in repository.

second, you'll need find clean copy of file. best bet check out copy of project server , file there. if find it, replace corrupted copy.

if fresh checkout server doesn't have file, it's part of local commit on own machine hasn't been pushed server yet. in case, may have delete , re-create of commits.

lastly, should investigate how file got corrupted in first place. checking hard drive errors idea.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -