Prune remote tracking branches git
Remove local refs to remote branches that no longer exist
git fetch --prune
more git
all 45 commands →
Clone with limited depth
git clone --depth=1 --single-branch --branch main <url>
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>