Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. fatal: index file corrupt
  2.  
  3. rm -f .git/index
  4. git reset --keep
  5.  
  6. arie@dev:/var/www/repo$ ls -lha .git/ # Ver los archivos de .git/
  7. [... otros archivos ...]
  8. -rw-r--r-- 1 arie arie 175K mar 2 13:18 index # Fichero correcto
  9.  
  10. arie@dev:/var/www/repo$ git add . # Este funciona!
  11. arie@dev:/var/www/repo$ truncate -s 1000 .git/index # Echamos a perder :(
  12. arie@dev:/var/www/repo$ git add . # Error!
  13. error: bad index file sha1 signature
  14. fatal: index file corrupt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement