I think git is buggy. I wanted to discard the changes I made to my file by checking out a copy from the last commit, so I said % git cat-file blob HEAD:my-file >my-file But this does not respect core.autocrlf and the file becomes one long line. Also it feels stupid that I have to say my-file twice at the command prompt. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html