This document explains how to use the Universal Commits Migrator (UCM) once you have successfully installed it on your local machine.
The tool is designed to fetch your commit history from a source control management platform (like GitLab) and migrate it to your GitHub repository as empty commits, preserving the original commit timestamps.
Follow these steps to run the Universal Commits Migrator (UCM):
Ensure that your .env
file is correctly configured with your source (GitLab) and destination (GitHub) credentials, as well as any other necessary configuration details.
Open a terminal in the root directory of the project and execute the following command:
go run main.go
This command starts the migration process. The tool performs the following actions:
SOURCE
and DESTINATION
environment variables to determine the source (e.g., GitLab) and destination (e.g., GitHub) for migration.pushed_commits.txt
file to determine if it has already been migrated.pushed_commits.txt
: After a commit is successfully pushed to GitHub, its date is recorded in the pushed_commits.txt
file to prevent reprocessing in future runs.The migration process can take some time, depending on the number of commits to migrate. Monitor the app.log
for log messages. The tool provides detailed logs for each operation, making it easy to track the progress and troubleshoot if needed.
Once the script completes, you can verify that the commits have been successfully pushed to your GitHub repository by:
app.log
file.The tool logs all operations to an app.log
file. If you encounter any issues or need to review the actions performed by the tool, you can find detailed logs in this file.
app.log
file for any errors or unexpected behavior.If you encounter any issues while running the Universal Commits Migrator (UCM), refer to the /troubleshooting/troubleshooting.md
document for guidance on common issues and their solutions.
If you need help, have suggestions, or would like to contribute to the project, please feel free to open an issue or submit a pull request on the GitHub repository.
Thank you for using the Universal Commits Migrator (UCM). Your contributions and feedback help improve this tool for everyone!