# github_tool--github-gitee-GITEA **Repository Path**: repok/github_tool--github-gitee-GITEA ## Basic Information - **Project Name**: github_tool--github-gitee-GITEA - **Description**: http://giteaz:3000/github_tool/github-gitee-GITEA.git github--->gitee--->GITEA - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-05 - **Last Updated**: 2024-10-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [开发用的详细文档==readme-dev.md](http://giteaz:3000/wiki/github-gitee-GITEA/src/branch/main/readme-dev.md) [客户方简易使用文档==readme.md](http://giteaz:3000/wiki/github-gitee-GITEA/src/branch/main/readme.md) **本文是 客户方简易使用文档** ### 环境安装、依赖安装(只做一次) ```shell bash /app/github-gitee-GITEA/script/env_prepare.sh cd /app/github-gitee-GITEA/gitee_api_fetch_ts/ && npm install ``` ### 前置准备(只做一次) #### 1. 生成gitee导入仓库请求模板(会启动chrome) 1. 生成gitee导入仓库请求模板, 参考 [gen-gitee_importRepo-ReqTemplate](http://giteaz:3000/misc/gitee_api_fetch_ts/src/branch/main/README.md#gen-gitee_importrepo-reqtemplate)的1到4, 第5步不需要 2. 此时 可以 以命令方式使用gitee导入仓库接口, [gitee_importRepo:use_example.sh](http://giteaz:3000/misc/gitee_api_fetch_ts/src/branch/main/README.md#gitee_importrepo) ```shell bash /app/github-gitee-GITEA/gitee_api_fetch_ts/script/use_example.sh ``` #### 2. 搭建本地gitea服务 [gitea_as_github.md](http://giteaz:3000/wiki/github-gitee-GITEA/src/branch/main/migrate2GITEA/gitea_as_github.md) ##### use-local-gitea-as-github 将 搭建好的gitea服务 当作 假"github" ```shell echo """ 10.0.4.23 github.local 10.0.4.23 github.com """ | sudo tee -a /etc/hosts ``` ### pytorch v0.3.0 #### 1、 递归gitee导入接口(github-->gitee) TODO #### 2、迁移迁移(gitee-->本地GITEA) ```shell RepoRecurseMigrate.py --from_repo_url https://github.com/pytorch/pytorch.git --from_commit_id af3964a8725236c78ce969b827fdeee1c5c54110 --mirror_base_ur https://gitee.com --mirror_org_name imagg --sleep_seconds 2 ``` #### 3、 编译 http://giteaz:3000/wiki/github-gitee-GITEA/src/branch/main/torch-v0.3.0-build.md ### pytorch v1.0.0 #### 1、 递归gitee导入接口(github-->gitee) ```shell RepoRecurseImport.py --from_repo_url https://github.com/pytorch/pytorch.git --from_commit_id db5d3131d16f57abd4f13d3f4b885d5f67bf6644 --goal_org imagg --sleep_seconds 2 ``` http://giteaz:3000/wiki/github-gitee-GITEA/src/branch/main/import2gitee/doc/import_torch-v1.0.0-db5d3131d16f57abd4f13d3f4b885d5f67bf6644.log.txt ---- #### 2、迁移迁移(gitee-->本地GITEA) ```shell RepoRecurseMigrate.py --from_repo_url https://github.com/pytorch/pytorch.git --from_commit_id db5d3131d16f57abd4f13d3f4b885d5f67bf6644 --mirror_base_ur https://gitee.com --mirror_org_name imagg --sleep_seconds 2 ``` #### 3、 编译 http://giteaz:3000/wiki/github-gitee-GITEA/src/branch/main/torch-v1.0.0-build.md #### 4、 c++例子 https://gitee.com/frida_analyze_app_src/torch-cpp/blob/master/v1.0.0/readme.md ### pytorch v1.3.1 #### 1、 递归gitee导入接口(github-->gitee) TODO #### 2、迁移迁移(gitee-->本地GITEA) TODO #### 3、 编译 http://giteaz:3000/wiki/github-gitee-GITEA/src/branch/main/torch-v1.3.1-build.md