so you fucked up your git-foo and destroyed some code that you had added to your index, but didn't commit? - you are no longer screwed : https://github.com/pendashteh/git-recover-index restores your files from the git blobs into a directory and you can get you precious files back....
thanks @pendashteh