fix file modes
write-tree command
fix reading index
commit command