tags:

views:

114

answers:

1

Is there any way to git pull all folders in the repository but one? I don't want to create a .gitignore file because other people may want the folder -- it's just too large for me to use right now.

Thanks!

+2  A: 

I don't think you can do partial pulling, but you can try and see what happen if you pull in a working tree which is not completely checked out.

Since Git1.7, you can do a sparse checkout, as illustrated here, meaning your working tree would explicitly exclude that specific folder when populate its content.

Now if that directory is that big, it may be better to isolate it in an autonomous Git repository, allowing other users to refer to it as a submodule.

VonC
That's unfortunate. Thanks for the comment!
Jasie