Fork this repo to sync your GitLab commit history with GitHub.
This tool automatically creates commits on GitHub with dates matching your GitLab activity calendar, helping maintain a consistent contribution history across platforms.
The GitHub Action will:
- Run automatically on every commit to main/master branch
- Run daily at midnight UTC via scheduled cron job
- Fetch your GitLab activity calendar
- Create commits with matching dates for any missing activity
- Push the changes back to your repository
- Fork this repository
- Go to your fork's Settings → Secrets and variables → Actions
- Add the following secrets:
GL_USERNAME
: Your GitLab usernameGH_REPOSITORY
: The Git repository URL to sync to (e.g.,https://github.com/username/repo.git
)GH_USERNAME
: Your GitHub usernameGH_EMAIL
: Your GitHub email addressGH_SSH_KEY
: Your GitHub SSH key
You can also run the script manually:
export GL_USERNAME="your-gitlab-username"
export GH_REPOSITORY="https://github.com/username/repo.git"
export GH_USERNAME="your-github-username"
export GH_EMAIL="[email protected]"
export GH_SSH_KEY="-----BEGIN RSA PRIVATE KEY-----..."
./script.sh