SHARE
TWEET

Untitled

a guest Jun 25th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top