v68

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.3 MB
migrations

Update Git LFS preference

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.

[!WARNING] Endpoint closing down notice: Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the changelog.

patch/repos/{owner}/{repo}/import/lfs

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Request body

use_lfs'opt_in' | 'opt_out' required

Whether to store large files during the import. opt_in means large files will be stored using Git LFS. opt_out means large files will be removed during the import.

Response

Response

vcsstring nullable required
use_lfsboolean
vcs_urlstring required

The URL of the originating repository.

svc_rootstring
tfvc_projectstring
status'auth' | 'error' | 'none' | 'detecting' | 'choose' | 'auth_failed' | 'importing' | 'mapping' | 'waiting_to_push' | 'pushing' | 'complete' | 'setup' | 'unknown' | 'detection_found_multiple' | 'detection_found_nothing' | 'detection_needs_auth' required
status_textstring nullable
failed_stepstring nullable
error_messagestring nullable
import_percentinteger nullable
commit_countinteger nullable
push_percentinteger nullable
has_large_filesboolean
large_files_sizeinteger
large_files_countinteger
messagestring
authors_countinteger nullable
urlstring uri required
html_urlstring uri required
authors_urlstring uri required
repository_urlstring uri required
svn_rootstring