Skip to main content

Add your description here

Project description

Gigrator

Gigrator 是一个 Git 代码仓批量迁移工具,支持众多流行的代码托管平台,包括 GitHub、码云(Gitee)、GitLab、Gitea、Coding、Gogs、腾讯工蜂,同时可以基于本项目进行拓展其他代码托管平台。

支持的平台

说明:

  • 暂不支持迁移至 Coding,可从 Coding 迁移至其他 Git 服务器
  • 由于 Coding 的升级,其基础 API 不再是 https://coding.net,而改为: https://{username}.coding.net
  • 迁移前请确认已在Git服务器上添加 SSH Key
  • 只能迁移指定用户下的仓库,即 {username}/{repo_name},不包括参与的或者组织的仓库
  • 迁移包括commits、branches和tags,不包括issues、pr和wiki

安装

pip 安装

pip install gigrator

源码安装

git clone https://github.com/k8scat/gigrator.git
cd gigrator
make

使用

环境要求

  • Git
  • Python3

配置文件

参考 config.yml

运行

gigrator -c config.yml

扩展更多平台

基于 Git 类实现其他平台的代码仓迁移

class Git:
    def list_repos(self) -> list:
        raise NotImplementedError

    def create_repo(self, name: str, desc: str, is_private: bool) -> bool:
        raise NotImplementedError

    def is_repo_existed(self, repo_name: str) -> bool:
        raise NotImplementedError

贡献

Note:

  • 不支持迁移至 Coding, 可从 Coding 迁移至其他 Git 服务器
  • 由于 Coding 的升级, 其基础 API 不再是 https://coding.net, 而改为: https://{username}.coding.net
  • 迁移前请确认已在Git服务器上添加 SSH Key
  • 只能迁移指定用户下的仓库, 即 {username}/{repo_name}, 不包括参与的或者组织的仓库
  • 迁移包括commits、branches和tags, 不包括issues、pr和wiki

环境

  • Git
  • Python

开发环境: git version 2.20.1 (Apple Git-117) + Python 3.7.2

开发手册

开发手册

开源协议

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gigrator-0.1.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gigrator-0.1.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file gigrator-0.1.0.tar.gz.

File metadata

  • Download URL: gigrator-0.1.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for gigrator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2b45b62ba8c9fca7f3ae0794a2b2b96631d4947f768e68970a6354b4c6156bf6
MD5 e2576661cd50cb1074e3085448234057
BLAKE2b-256 d93e88be37e530ec710f8d47dc13ae5251aac876b53148aa5709f5f0e67a165f

See more details on using hashes here.

File details

Details for the file gigrator-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gigrator-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for gigrator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 201f84fbc29cfc9aabebf5dce0ddcb30813014b578fec3b5e053457bd16606b6
MD5 7a4d441395c3d6ec438559be31dd56ce
BLAKE2b-256 d87465af148997150ed2ca67a7f490645fd0c9e483175f6aaec6f6a32da162bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page