posted 11/15/2011 by Vivek Thakur Sometimes using Visual Studio Git Extensions, while switching in and out of Git branches, you may encounter this error: error: bad index file sha1 signature fatal: index file corrupt Your Git index may get corrupted, and here is a quick fix to restore your index to your last commit: 1. Open Git bash by going to Start-> All Programs-> Git-> Git Bash. This will ope