By default, cloning a GitHub repository using the “git clone” command will put the files into a new folder with the same name as the repository. As you can imagine, there is probably situations where you would want to clone the repo into a different location.
To achieve this, simply modify the command like so:
git clone <repo url> <desired folder>
For example, if I wanted to clone our RP2040 Project Template GitHub repo into a directory called “new-project”, I would run the following command:
git clone https://github.com/LearnEmbeddedSystems/rp2040-project-template new-project
The result will be the cloned repo in a folder called “new-project”!