Copy a repository
low risk
Creates a local copy of a repo. See the flags and examples below, and run `man git` for the full reference.
| Flag | Meaning |
|---|---|
--depth --depth | Shallow clone |
--branch --branch | Clone a branch |
--recurse-submodules --recurse-submodules | Include submodules |
git clone --depth 1 https://github.com/org/repo.gitShallow clone · explain & risk-check →Reference text is hand-written and may be incomplete — check man git for your version. Test destructive commands on a non-production system first.