Git · Setup and remotes

git clone --depth

A shallow clone with limited history. Faster for CI, but blame and log are incomplete.

Syntax
git clone --depth 1 <url>

Example

Example
git clone --depth 1 https://github.com/example/project.git

More in this group

git clone --branch git config alias git config core.autocrlf git config pull.rebase git init --bare git remote add git remote remove git remote set-url

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course