Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git sparse checkout based on VCS url #72

Open
anweiss opened this issue Apr 14, 2017 · 3 comments
Open

Git sparse checkout based on VCS url #72

anweiss opened this issue Apr 14, 2017 · 3 comments

Comments

@anweiss
Copy link

anweiss commented Apr 14, 2017

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

@dmitshur
Copy link

Similarly to how go get ... works.

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

@anweiss
Copy link
Author

anweiss commented Apr 14, 2017

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

@mattfarina
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants