Git: initialize dirs.
update cwd for GitCommand.