Domanda

Ciao, ho il seguente errore di git-fsck, che non può essere pulito da git-gc nemmeno in modalità --aggressive.Cosa posso fare per correggere questo errore del repository?

$ git-fsck
bad sha1 file: .git/objects/55/tmp_obj_a07724
È stato utile?

Soluzione

Non è una risposta semplice, purtroppo.Ma questo potrebbe aiutare:

Ripristino dalla corruzione del repository (dal manuale utente di Git).

Altri suggerimenti

Ehm... tmp_obj_a07724 assomiglia in modo sospetto a un residuo temporaneo :) file

Cosa succede se lo sposti semplicemente lontano da .git directory (dopo un backup del tutto)?

Da man git-fsck:

Any corrupt objects you will have to find in backups or other archives
(i.e., you can just remove them and do an rsync with some other site in
the hopes that somebody else has the object you have corrupted).
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top