Commit with directory.