Skip to content

Instantly share code, notes, and snippets.

@gregjhogan
Created October 19, 2018 01:15
Show Gist options
  • Select an option

  • Save gregjhogan/f4b114adf515fe1dc09b3bffb766fae2 to your computer and use it in GitHub Desktop.

Select an option

Save gregjhogan/f4b114adf515fe1dc09b3bffb766fae2 to your computer and use it in GitHub Desktop.
convert git repo to shallow clone
git pull --depth=1
git gc --prune=all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment