{"id":19265365,"url":"https://github.com/tisma95/gitlab-clone","last_synced_at":"2026-02-06T13:53:03.999Z","repository":{"id":195168220,"uuid":"692386212","full_name":"tisma95/gitlab-clone","owner":"tisma95","description":"This repository goal is to clone/pull all repositories of github associate to the user to specific location.","archived":false,"fork":false,"pushed_at":"2024-10-28T21:21:10.000Z","size":197,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T19:44:15.860Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tisma95.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-16T10:23:01.000Z","updated_at":"2024-10-28T21:21:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a5cb2ee-2348-4fe3-a643-c74e5c7c0d17","html_url":"https://github.com/tisma95/gitlab-clone","commit_stats":null,"previous_names":["tisma95/gitab-clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tisma95/gitlab-clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisma95%2Fgitlab-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisma95%2Fgitlab-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisma95%2Fgitlab-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisma95%2Fgitlab-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tisma95","download_url":"https://codeload.github.com/tisma95/gitlab-clone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tisma95%2Fgitlab-clone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29163556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T12:44:37.655Z","status":"ssl_error","status_checked_at":"2026-02-06T12:44:13.991Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T19:45:48.934Z","updated_at":"2026-02-06T13:53:03.982Z","avatar_url":"https://github.com/tisma95.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitlab Repository Clone\n\n## Author\n\n**Name**: Ismaël Maurice\n\n**Github**: https://github.com/tisma95\n\n**Email**: ismael.tuo@edigrp.com \u003cbr\u003e\n\n## Description\n\nThis repository goal is to clone all repositories of gitlab associate to the user:\n + the personal user repositories private and public,\n + the user organization repositories,\n + the fork repositories.\n\nIf the repository existed pull to update will be.\n\nClone all branchs in folder.\n\n**WARNING:**\nThe repository name with space will be replace in clone folder by -. Example the repository name like **repo 1** will be clone with name **repo-1**.\n\n## Requirement\n\nBefore starting the project you need to install on your computer the following packages:\n\n[Python \u003e=3.9](https://www.python.org/downloads/)\n\n[Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)\n\n\n## Started\n\nRun the commands inside the folder:\n\n1. If no **env** folder exists init the environment else skip this step\n```cmd\n    python -m venv env\n```\nor\n```cmd\n    python3 -m venv env\n```\nor for ubuntu\n```cmd\n    virtualenv venv\n```\n\n```node\n    If any problem follow this page to fix and intall virutalenv: https://gist.github.com/frfahim/73c0fad6350332cef7a653bcd762f08d\n```\n\n2. If the env folder already exists, run the following command to activate it\n```cmd\n    source env/bin/activate\n```\nor for windows\n```cmd\n    env\\Scripts\\activate.bat\n```\n\n3 Run the installation of package via following command\n```cmd\n    pip install -r requirements.txt\n```\n\n1. Init the environment variable by following [Environment variables](#environment-variables)\n2. Create the token on your **Gitlab** access only read access is required to clone all branches and repositories:\n\n    \u003cimg src=\"./img/token.png\" alt=\"\" width=\"50%\"/\u003e\n\n    If you want to update the fork repositories you need to give the write access also like:\n\n    \u003cimg src=\"./img/token_read_and_write.png\" alt=\"\" width=\"50%\"/\u003e\n\n3. Run the script with command `python main.py` or `python3 main.py`\n\n## Environment variables ##\n\nCreate the file **.env** inside folder with following example variable\n\n```yaml\n# Clone repo host\nDOMAIN = gitlab.com\n# Domain protocol type http or https\nPROTOCOL = https\n# Access Token To Domain\nTOKEN = your_generate_token_here\n# Username To Domain\nUSERNAME = your_gitlab_username\n# Storage Folder =\u003e Folder where the repositories will be save =\u003e example /home/toto or C:\\users\\toto for windows\nFOLDER = folder_path_here\n```\n\n## Other informations\n\n+ If new package is install we can update the **requirements.txt** with command `pip freeze \u003e requirements.txt` or `python3 -m pip freeze \u003e requirements.txt`\n\n+ Exit the env via: `deactivate` or for windows `env\\Scripts\\activate.bat`\n\n\n## Useful packages\n\n[Requests Documentation](https://requests.readthedocs.io/en/latest/user/quickstart/)\n\n[Gitlab REST API Documentation](https://docs.gitlab.com/ee/api/rest/)\n\n[python-dotenv Documentation](https://pypi.org/project/python-dotenv/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftisma95%2Fgitlab-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftisma95%2Fgitlab-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftisma95%2Fgitlab-clone/lists"}