Modernize Git to upstream GitRepos, mainly command handling.