Skip to content

Instantly share code, notes, and snippets.

@sonalranjit
Last active July 11, 2017 19:48
Show Gist options
  • Save sonalranjit/8aeb4149c30918a6be63209fc5331c02 to your computer and use it in GitHub Desktop.
Save sonalranjit/8aeb4149c30918a6be63209fc5331c02 to your computer and use it in GitHub Desktop.
Properly clone git repo with git lfs
// Skip smudge - We'll download binary files later in a faster batch
git lfs install --skip-smudge
// Do git clone here
git clone ...
// Fetch all the binary files in the new clone
git lfs pull
// Reinstate smudge
git lfs install --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment