Git · Junior · Question 13 of 75
What does git clone <url> do?
- 1Downloads only the latest version of all the files
- 2Creates an empty repository linked to that URL
- ✓Correct answer: Copies the whole repo and checks out the default branch
Explanation
Clone downloads all commits, sets up a remote called origin and checks out the default branch. Shallow clones (--depth) are an option when history isn't needed.