Git Clone Without Commit History
To clone a Git repository without the full commit history use the --depth
flag to create a shallow clone with a history truncated to the specified number of commits.
bash
$git clone --depth=1 <GIT-REPO-URL>
A blog about programming, Web development, Open Source, Linux and DevOps.
To clone a Git repository without the full commit history use the --depth
flag to create a shallow clone with a history truncated to the specified number of commits.
$git clone --depth=1 <GIT-REPO-URL>