git clone https://github.com/USER/REPO.git
- Purpose
- Download a remote repository into a new local folder
- When to use
- When you want a fresh local copy of an existing repo
- Risk notes
- Fails if the destination folder already exists and is not empty
git clone https://github.com/USER/REPO.git my-local-folder
- Purpose
- Clone a repository into a specific local folder name
- When to use
- When you don’t want the folder name to default to the repo name
- Risk notes
- If the folder exists, cloning may fail or create nested content depending on your path