Categories
Linux Mastering Development

Switch all my git repositories to depth 20, to save space?

I know that git clone –depth=20 <repo> is oftentimes much much smaller than git clone. Official docs for –depth. Looks like I’ve gone a bit crazy with my repos folder, here’s the fd piped to wc and du, with output: $ declare -r ALL_GIT="$(fd -HIFt d ‘.git’)" $ echo "$ALL_GIT" | wc -l 1528 $ […]

Categories
Linux Mastering Development

Switch all my git repositories to depth 20, to save space?

I know that git clone –depth=20 <repo> is oftentimes much much smaller than git clone. Official docs for –depth. Looks like I’ve gone a bit crazy with my repos folder, here’s the fd piped to wc and du, with output: $ declare -r ALL_GIT="$(fd -HIFt d ‘.git’)" $ echo "$ALL_GIT" | wc -l 1528 $ […]