See http://stackoverflow.com/questions/3689137/error-git-checkout-index-unable-to-create-file for additional details