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
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.