What does git clone do?
a) Copies a remote Git repository to your local machine
b) Deletes a remote repository
c) Merges a remote repository into the current branch
d) Pushes changes to the remote repository
Answer:
a) Copies a remote Git repository to your local machine
Explanation:
The git clone command creates a copy of a remote Git repository on your local machine. It downloads the repository’s history, branches, and files, allowing you to work on the project locally.
For example, running git clone https://github.com/user/repo.git will download the repository located at that URL to your machine.
This is the first step when you want to contribute to an existing Git project.