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.