Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joeloftusdev/get-gitlab-contribution-history
Import your Gitlab contribution history into Github with a Python script
https://github.com/joeloftusdev/get-gitlab-contribution-history
commit-history gitlab gitlab-migrated python script
Last synced: about 1 month ago
JSON representation
Import your Gitlab contribution history into Github with a Python script
- Host: GitHub
- URL: https://github.com/joeloftusdev/get-gitlab-contribution-history
- Owner: joeloftusdev
- License: mit
- Created: 2024-02-16T16:27:39.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-21T15:00:40.000Z (10 months ago)
- Last Synced: 2024-02-21T16:30:34.757Z (10 months ago)
- Topics: commit-history, gitlab, gitlab-migrated, python, script
- Language: Python
- Homepage: https://joeloftus.net/
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitLab to GitHub Contribution History Transfer Script
This script transfers the commit history from a GitLab repository to Github. It performs the following tasks:
1. Clones the GitLab repository locally.
2. Removes files from the Git history with specified extensions such as Images and gifs to speed up the process.
3. Adds a remote pointing to the GitHub repository.
4. Pushes the filtered commit history to a new branch on the GitHub repository.
5. Merges the new branch into the existing GitHub repository.## Usage
### Prerequisites
- Python installed.
- Both GitLab and GitHub repositories accessible with the appropriate permissions.### Running the Script
1. Clone this repository to your local machine:
```bash
git clone
```2. Navigate to the directory containing the script:
```bash
cd
```3. Run the script `gl2gh.py` with the following command, provide the URLs of the GitLab and GitHub repositories as arguments:
```bash
python gl2gh.py
```Replace `` with the URL of the GitLab repository and `` with the URL of the GitHub repository.
### Note
- Ensure that you have the necessary permissions to clone, push, and merge branches in both the GitLab and GitHub repositories.
- Review the `SKIP_EXTENSIONS` list in the script to verify that it matches the file extensions you want to exclude from the transfer.## Your History after!
![after](https://github.com/joeloftusdev/get-gitlab-commits/assets/152509645/23c05bb4-0efd-46a6-8139-63bc7466e94b)## License
This script is licensed under the [MIT License](LICENSE).