- This python script will export the project history from Source Integrity to a GIT repository
- Currently imports checkpoints and development paths only
- This does not currently support incremental imports
- You must have
si
(Source Integrity command line tools) and git on the PATH - Login to the Source Integrity client
- Make a folder where you want your git repository to reside
- Initialize the git repository by running
git init
- In a command prompt (not PowerShell or bash) execute the command:
si_checkpoints_to_git.exe <MKS_project_path/project.pj> | git fast-import
from within the initialized git repository (this will take a while depending on how big your project is)- If you need to change the date format add the parameters:
--date-format "<python format directives>"
with the format directives you wish to use - To only include certain files or paths use the --include-name and --include-path parameters.
- To exclude certain files or paths use the --exclude-name and --exclude-path parameters.
- If you need to change the date format add the parameters:
- Once the import is complete, git will output import statistics
- Run
git reset head --hard
to resynchronize your git folder - You can now confirm/clean up the git history, and then push it to a remote
- Install Python 3.10
- Install gitpython module:
pip install GitPython
- Install pyinstaller module:
pip install pyinstaller
- Execute the command
pyinstaller --onefile si_checkpoints_to_git.py