Git repos migration tool which supports Github / Gitee / Gitlab / Gitea / Coding / Gogs / 腾讯工蜂.
Git 代码仓批量迁移
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
# Base class
class Git:
pass
# Other GitServer class should inherit Git
class OtherGit(Git):
pass
Note:
Coding
, 可从 Coding 迁移至其他 Git
服务器Coding
的升级, 其基础 API
不再是 https://coding.net
, 而改为: https://{username}.coding.net
SSH Key
{username}/{repo_name}
, 不包括参与的或者组织的仓库开发环境: git version 2.20.1 (Apple Git-117)
+ Python 3.7.2
Can not create a project!
It will co-exist with the current v4 REST API. If we have a v5 API, this should be a compatibility layer on top of GraphQL.