Git · Senior · Question 38 of 76
What does git clone --mirror produce?
- ✓Correct answer: A bare repository with all refs, for backups or migrations
- 2A clone that pushes to two remotes automatically
- 3A working copy of every branch in separate folders
Explanation
A mirror copies every ref (including notes and PR refs) and git push --mirror reproduces them elsewhere. It's how you move a repository between hosts.