Clone with limited depth git
Clone only the latest commit of one branch (fast CI checkout)
git clone --depth=1 --single-branch --branch main <url>
more git
all 45 commands →
List contributors by commit count
git shortlog -sn --all
Search commit messages
git log --all --grep='fix:' --oneline
Search commit diffs (pickaxe)
git log -S 'functionName' --patch --all
Partial clone (blobless)
git clone --filter=blob:none <url>
Worktree for parallel branches
git worktree add ../hotfix-branch hotfix/urgent