Skip to content

Instantly share code, notes, and snippets.

@a7madgamal
Last active September 29, 2016 13:27
Show Gist options
  • Select an option

  • Save a7madgamal/7ad0d9ef21b5e27388b7e627baf86c83 to your computer and use it in GitHub Desktop.

Select an option

Save a7madgamal/7ad0d9ef21b5e27388b7e627baf86c83 to your computer and use it in GitHub Desktop.

Go to the .git folder in your repo and open the file config. In the [core]section add the line

sparsecheckout = true then go to the folder .git/info and create the file sparse-checkout. Add something like

!this/path/will/be/ignored/* You should now be able to checkout the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment