I don\'t know the main reason but once in a while git completely removes the content in a buffer/file that I am working on if the commit is not completed succes
git