A shell function wrapper for git that automatically adds `--depth=1` to all `git clone` commands unless a depth is already specified. The author aliases `git` to this wrapper function in their zsh/bash config, avoiding the need to manually type `--depth=1` every time. The post also notes that git lacks a native config option for this behavior.

1m read timeFrom smcleod.net
Post cover image

Sort: