mdawar.dev

A blog about programming, Web development, Open Source, Linux and DevOps.

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>