Overview
A second way to begin is to copy an existing remote repository to your computer:
git clone <repository-url>
Cloning downloads the remote repository into a new local folder. The downloaded folder includes both the project files and its .git directory, so it is immediately a complete local Git repository.
Initialization and cloning therefore begin from opposite directions:
- git init starts with a local folder and turns it into a repository.
- git clone starts with a remote repository and creates a local copy.