`uv init` initializes a git repo
Summary
Similiar to cargo init --vcs <VCS>, this PR adds the --vcs <VCS> flag for uv init, allowing to create a version control system during initialization. By default, uv init will create a Git repository if the --vcs flag is not provided. Use --vcs none to disable this feature.
Currently, only Git is supported. While Cargo also supports hg, pijul, and fossil, this initial PR only includes Git. We can add more later if there are any user requests.
CodSpeed Performance Report
Merging #5476 will not alter performance
Comparing j178:init-vcs (5861e4b) with main (4ba0e56)
Summary
✅ 14 untouched benchmarks
Thanks @charliermarsh ❤️
Is there a way to disable git repo creation by default globally?