Open Eyepatch-13 opened 1 month ago
To add Rust code to the project without creating nested git repositories, follow these steps:
cargo new
to create your new Rust project..git
directory created by cargo new
in the new Rust project..git
directory.This way, you avoid nested git repositories and keep everything under the main repository's version control.
I want to add rust codes to the project. However on using the default "cargo new" command, the tool creates a .git as well. How should I go about creating nested gits? Or should I commit excluding the .git?