The git clone
command is used to copy an existing Git repository.
git clone <repository-url>
-
Downloads the entire repository, including all files, branches, and commit history.
-
Creates a new directory with the repository name.
git clone https://github.com/user/repo.git