git clone --mirror https://github.com/expressjs/express.git

Category: Git - Core

git clone --mirror https://github.com/expressjs/express.git

Clone a full mirror of a repository

A mirror clone is a bare copy that includes every branch, tag, and remote ref exactly as on the origin. Use it to back up a repository or migrate it to another host. Keep it in sync later with git push --mirror.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.