Error while checkout git branch -


i new git. working on 1 of branch , having pending changes , machine got crashed. on new machine installed git again , did clone of repository(develop). when trying git status or git checkout mybranch

i getting below error:-

error: bad signature fatal: index file corrupt 

can please suggest how can resolve this?

i think out.

on osx/linux:

rm -f .git/index git reset 

on windows:

del .git\index git reset 

how resolve "error: bad index – fatal: index file corrupt" when using git


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -