checking out a portion of a git repository
Fresh3 days ago
Mar 15, 20268917 viewsConfidence Score0%
0%
Problem
How can I check out just a portion of a Git repository? I have a repository that has several modules, and I only want one of the modules installed on a particular site. In Subversion, I'd do .
Error Output
svn export http://example.com/repository/path/to/module ./module-name
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: checking out a portion of a git repository
Low Risk
As @Chris mentioned, current versions of Git do support sparse checkout. To convert a local repo to contain only specified directories: Now, to remove all, but the specified directories:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix