文档

​
​

Development

User Acquisition

Monetization

工业

Unity Version Control

DevOps

On-prem

Gluon

Editor plug-in

Open Unity Dashboard

Unity Version Control

此页面不支持所选语言。
​
​
Unity Version Control
  • Overview
  • Cloud Repositories organization update
  • Installation
  • Use UVCS with the Unity Editor
  • Unity Version Control plugins
  • Concepts
  • Tutorials
  • On-Prem
  • Gluon
  • CLI and shortcut references
    • Unity Version Control CLI
      • acl
      • activateuser
      • add
      • admin
      • annotate
      • api
      • applylocal
      • archive
      • attribute
      • autocomplete
      • branch
      • changelist
      • changerevisiontype
      • changeset
      • changeuserpassword
      • checkconnection
      • checkin
      • checkout
      • checkselectorsyntax
      • clone
      • codereview
      • configure
      • crypt
      • deactivateuser
      • diff
      • diffmetrics
      • fastexport
      • fastimport
      • fileinfo
      • find
      • getconfig
      • getfile
      • getrevision
      • getstatus
      • gettaskbranches
      • getworkspacefrompath
      • getworkspaceinfo
      • help
      • history
      • iostats
      • issuetracker
      • label
      • licenseinfo
      • linktask
      • list
      • listusers
      • location
      • lock
      • log
      • merge
      • move
      • objectspec
      • partial
      • patch
      • profile
      • pull
      • purge
      • push
      • query
      • remove
      • repository
      • revert
      • setowner
      • shelveset
      • show-find-objects
      • showacl
      • showcommands
      • showowner
      • showpermissions
      • support
      • switch
      • sync
      • trigger
      • tube
      • undelete
      • undo
      • undochange
      • undocheckout
      • undocheckoutunchanged
      • update
      • version
      • whoami
      • workspace
      • workspacestatus
      • xlink
    • CLI help
    • Pipe commands
    • cm find
    • Windows keyboard shortcuts
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

FASTIMPORT

Import GitHub fast-export data into a repository with the Unity Version Control CLI.
阅读时间2 分钟
最后更新于 10 个月前

Description

Imports Git fast-export data into a repository.

Usage

cm fast-import | fi <repspec> <fast-export-file> [--import-marks=<marks_file>] [--export-marks=<marks_file>] [--stats] [--branchseparator=<chr_separator>] [--nodata] [--ignoremissingchangesets] [--mastertomain]

Options

Option / Argument

Description

repspecThe repository into which the data will be imported. It is created if it did not previously exist. (Use 'cm help objectspec' to learn more about rep specs.)
fast-export-fileThe file with the repository data in Git fast-export format.
--import-marksThe marks file used for incremental imports. This file has been previously exported by '--export-marks'. The changesets described in this file wont be imported because they were already in a previous import.
--export-marksThe file where the imported changesets will be saved. This file is used in a later fast-import to signal the changesets that have been already imported.
--statsPrints some statistics about the import process.
--branchseparatorUVCS uses "/" as default separator in the branch hierarchy. This option allows using char as a hierarchy separator, so main-task-sub would be mapped in UVCS as /main/task/sub.
--nodataImports Git fast-export without including the data. This is useful to check if the import will run correctly.
--ignoremissingchangesetsAny changesets that cannot be imported are discarded and the fast-import operation continues without them.
--mastertomainImports using "main" instead of "master".

Help

Remarks

  • To export a Git repository, use a command such as: git fast-export --all -M --signed-tags=strip --tag-of-filtered-object=drop> ..\git-fast-export.dat The -M option is important to detect moved items.
  • The specified repository is created in case it did not exist.
  • Incremental import is supported using a marks file that contains the changesets previously imported ('--import-marks' and '--export-marks' files). This means that only the new changesets that were not imported in the previous fast-import will be imported.

Examples

cm fast-import mynewrepo@atenea:8084 repo.fast-export
(Imports the contents exported in the 'repo.fast-export' file into 'mynewrepo' repository on server 'atenea:8084'.)
cm fast-import repo@atenea:8084 repo.fast-export --export-marks=rep.marks
(Imports the contents exported in the 'repo.fast-export' file into 'repo' repository on server 'atenea:8084' and creates a marks file to perform incremental imports later.)
cm fast-import repo@server:8084 repo.fast-export --import-marks=repo.marks --export-marks=repo.marks
(Imports the contents of the 'repo.fast-export' file. Only the new changesets that were not in the marks file are imported. The same marks file is used to save the list of changesets again for the next incremental import.)

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Description

      • Usage

      • Options

    • Help

      • Remarks

      • Examples


报告此页面的问题