git reset and write