Clone with limited depth

Clone only the latest commit of one branch (fast CI checkout)

git clone --depth=1 --single-branch --branch main <url>

tool
git45 commands
tags
git

More git commands

all 45 git commands