uv icon indicating copy to clipboard operation
uv copied to clipboard

`uv init` initializes a git repo

Open j178 opened this issue 1 year ago • 1 comments

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.

j178 avatar Jul 26 '24 12:07 j178

CodSpeed Performance Report

Merging #5476 will not alter performance

Comparing j178:init-vcs (5861e4b) with main (4ba0e56)

Summary

✅ 14 untouched benchmarks

codspeed-hq[bot] avatar Sep 06 '24 16:09 codspeed-hq[bot]

Thanks @charliermarsh ❤️

j178 avatar Sep 26 '24 03:09 j178

Is there a way to disable git repo creation by default globally?

3f6a avatar Feb 25 '25 06:02 3f6a