https://stackoverflow.com/questions/5483213/fatal-git-write-tree-error-building-trees
solution:
git reset --mixed