When calling cargo new package_name, cargo by default creates a .git/ directory inside
the newly created package. If that's not something that you want, continue reading.
Modify global Cargo config file
On Linux, it's typically ~/.cargo/config.toml, but other options are valid too.
If it doesn't exist yet - create one
~/.cargo/config.toml
[cargo-new]
vcs = "none"That's it!
P.S. There are more options to explore. See this for further reference.