Git's fast-export format is becoming a very popular method to exchange historic data between different version control systems. As of version 4.0, Plastic SCM supports the Git fast-export format for both importing and exporting as well as marks files for incremental operations.
Both operations are available on the command line client, through the commands
The documentation below can also be retrieved using passing the --help argument to the cm fast-export and cm fast-import commands.
Imports Git fast-export data into a repository.
cm fast-import repository-spec
cm fast-import mynewrepo@atenea:8084 repo.fast-export
Imports the contents exported in the repo.fast-export file into the "mynewrepo" repository on server atenea:8084.
cm fast-import repo@server:8084 repo.fast-export --export-marks=repo.marks
Imports the contents exported in the repo.fast-export file into the "mynewrepo" repository on server atenea:8084 and creates a marks file to perform incremental imports later.
cm fast-import repo@server:8084 repo.fast-export --importmarks=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 changests again for the next incremental import.
To export a git repository, use a command like this:
git fast-export --all -M --signed-tags=strip --tag-of-filtered-object=drop > ..\git-fast-export.dat
Get further information here.