You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This ability is powered by Git LFS. You can learn more about our LFS feature and working with large files on our help site.
PATCH /repos/:owner/:repo/import/lfs
| Name | Type | Description |
|---|---|---|
use_lfs |
string |
Required. Can be one of opt_in (large files will be stored using Git LFS) or opt_out (large files will be removed during the import). |
{
"use_lfs": "opt_in"
}
Status: 200 OK
{
"vcs": "subversion",
"use_lfs": "opt_in",
"vcs_url": "http://svn.mycompany.com/svn/myproject",
"status": "complete",
"status_text": "Done",
"has_large_files": true,
"large_files_size": 132331036,
"large_files_count": 1,
"authors_count": 4,
"url": "https://api.github.com/repos/octocat/socm/import",
"html_url": "https://import.github.com/octocat/socm/import",
"authors_url": "https://api.github.com/repos/octocat/socm/import/authors",
"repository_url": "https://api.github.com/repos/octocat/socm"
}