1 Star 0 Fork 19

sridharbd / Gigrator

forked from Ankit Udiniyan / Gigrator 
Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Gigrator

Gigrator-go is coming soon!

Git 代码仓批量迁移

GitHub: https://github.com/hsowan-me/Gigrator

码云: https://gitee.com/hsowan/Gigrator

gigrator.png

Start

git clone git@gitee.com:hsowan/Gigrator.git
cd Gigrator
pip3 install -r requirements.txt

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

Develop

# Base class
class Git:
    pass


# Other GitServer class should inherit Git
class OtherGit(Git):
    pass

Support

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

Environment

  • Git
  • Python

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

Dependencies

References

GitLab

GitLab GraphQL API

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.

GitHub REST API v3

GitHub GraphQL API v4

Gitee

Gitea

Gogs

Coding

GraphQL Client

License

MIT

Repository Comments ( 0 )

Sign in to post a comment

About

Git代码仓批量迁移,支持GitHub、Gitee、GitLab、Gitea、Coding、Gogs expand collapse
Python
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
Python
1
https://git.oschina.net/sridharbd/Gigrator.git
git@git.oschina.net:sridharbd/Gigrator.git
sridharbd
Gigrator
Gigrator
master

Search

161121 f78d6d6f 1850385 154831 86f8c370 1850385