where in cargo's set of base configurations can I tell cargo to create new projects with a VCS that isn't github?
want to do this 1 time, not on every "cargo new" and not via editing ea project config
where in cargo's set of base configurations can I tell cargo to create new projects with a VCS that isn't github?
want to do this 1 time, not on every "cargo new" and not via editing ea project config
The cargo config is described in the cargo book chapter 3.3.
By default
cargo new
will initialize a new Git repository. This key can be set tohg
to create a Mercurial repository, ornone
to disable this behavior.
vcs = "none"
Adding details to hellow's answer, the file is ~/.cargo/config
and you should create it if it doesn't exist already. Then add the following:
[cargo-new]
vcs = "none" # VCS to use ('git', 'hg', 'pijul', 'fossil', 'none')