vcs icon indicating copy to clipboard operation
vcs copied to clipboard

Git sparse checkout based on VCS url

Open anweiss opened this issue 8 years ago • 3 comments

Is it possible to execute a sparse checkout based on the full remote URL path to a folder within a Git repo? Similarly to how go get ... works. Might be related to #68

anweiss avatar Apr 14 '17 14:04 anweiss

Similarly to how go get ... works.

Can you elaborate, in what way is go get related to sparse checkouts?

dmitshur avatar Apr 14 '17 16:04 dmitshur

I may be mistaken ... but basically I'd like to clone something like this github.com/org/repo/tree/master/subdir1

anweiss avatar Apr 14 '17 16:04 anweiss

@anweiss if you go get github.com/org/repo/tree/master/subdir1 it will clone and checkout all of github.com/org/repo. With git you can't clone just part of a repo and checking out a subdirectory is unusual and hard. go get does the whole repo.

mattfarina avatar May 02 '17 15:05 mattfarina