git clone

Description

Clone a repository into a new directory.

Command
git clone
Examples
Clone a repository
git clone https://github.com/user/repo.git
Clone a specific branch
git clone -b develop https://github.com/user/repo.git
Shallow clone
git clone --depth 1 https://github.com/user/repo.git
Parameters
Parameter Type Required Description
--depth <depth> string No Create a shallow clone with limited history
--branch <branch> string No Clone a specific branch
--recursive string No Clone with submodules
--mirror string No Create a mirror repository
Command Info
Category: Repository Management
Type: Git
Views: 7
Status: Active
Tags
repository clone download