Skip to content

k8scat/Gigrator

Repository files navigation

Gigrator

GitHub Action 来了: action-mirror-git 镜像同步 Git 仓库

Gigrator 是一个 Git 代码仓批量迁移工具,支持多种 Git 平台,包括 Gitee、GitLab、GitHub、Gitea、Coding、Gogs 和腾讯工蜂,同时支持自行扩展更多 Git 平台。

gigrator.png

快速开始

git clone https://github.com/k8scat/gigrator.git
cd gigrator
pip3 install -r requirements.txt

# 迁移前需在配置文件(settings.py)中配置 SOURCE_GIT 和 DEST_GIT
# 配置参考: settings_example.py
python3 gigrator.py

支持平台

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

交流群

交流群

二维码失效可添加微信 「kennn007」,请备注「Gigrator」。

About

Git repos migration tool which supports Github / Gitee / Gitlab / Gitea / Coding / Gogs / 腾讯工蜂.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages