{"repo":"kujov/gitlab-sync","free":true,"listed":false,"github":"https://github.com/kujov/gitlab-sync","clone":"git clone https://github.com/kujov/gitlab-sync.git","description":"Free GitHub Action to automatically mirror your repository to GitLab.","language":null,"stars":43,"topics":["github-actions","gitlab","github-to-gitlab","devops","git-mirror","mirror","mirrored-repository","repository-mirror","sync"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"GitLab Sync A GitHub Action for automatically mirroring your GitHub repository to GitLab. --- Overview GitLab Sync pushes your repository to GitLab on every push. It handles the full checkout, validation, and push — including full git history and optional Git LFS objects. Features: - Full history sync ( fetch-depth: 0 ) - Optional Git LFS support - Optional force push - Clear error messages for misconfigured secrets --- Quick Start 1. Add Secrets In your GitHub repository go to Settings Secrets and variables Actions and add: Secret Description -------- ------------- GITLAB URL Full HTTPS URL of your GitLab repo — e.g. https://gitlab.com/user/repo.git USERNAME Your GitLab username GITLAB PAT A GitLab Personal Access Token with write repository scope Tip: Generate a GitLab PAT at User Settings Access Tokens . Minimum required scope is write repository . 2. Add a Workflow Create .github/workflows/sync-to-gitlab.yml in your repository: That's it, every push to main will mirror to your GitLab repository. --- Configuration Inputs Input Description Required Default ------- ------------- ---------- --------- gitlab url HTTPS URL of the target GitLab repository Yes — username Your GitLab username Yes — gitlab pat GitLab PAT with write repository scope Yes — force push Force push to GitLab, overwriting remote history No false git lfs Also push Git LFS objects to GitLab No false Sync all branches Change the trigger to sync on pushes to any branch: Force push Use with caution — this over","default_branch":null,"files":null,"tree":[],"storefront":"/r/kujov","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kujov/gitlab-sync/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}