波神

导航

git仓库迁移

1、将老仓库以 git clone --bare 方式克隆到本地

Administrator@IZNKXUSFKTG85ER MINGW64 /e/sourceCode
$ git clone --bare ssh://git@git.chinacloud.com.cn:10022/pulsar/pro-nebula4j.git
Cloning into bare repository 'pro-nebula4j.git'...
remote: Counting objects: 60268, done.
remote: Compressing objects: 100% (45/45), done.
remote: Total 60268 (delta 8), reused 0 (delta 0)
Receiving objects: 100% (60268/60268), 16.38 MiB | 7.43 MiB/s, done.
Resolving deltas: 100% (25591/25591), done.

Administrator@IZNKXUSFKTG85ER MINGW64 /e/sourceCode
$ ll
total 100640
-rw-r--r-- 1 Administrator 197121     45395 十二 26  2017 dockerprocessdemo.zip
drwxr-xr-x 1 Administrator 197121         0 六月 19 14:21 fast/
drwxr-xr-x 1 Administrator 197121         0 十二 18  2017 mir1.0/
drwxr-xr-x 1 Administrator 197121         0 一月  2  2018 mir2.0/
-rw-r--r-- 1 Administrator 197121 102965400 一月  8  2018 mir2.0.zip
drwxr-xr-x 1 Administrator 197121         0 七月 20 17:14 nebula_web.git/
drwxr-xr-x 1 Administrator 197121         0 六月 22 14:47 node_modules/
drwxr-xr-x 1 Administrator 197121         0 七月 20 17:23 pro-nebula4j.git/
drwxr-xr-x 1 Administrator 197121         0 七月 19 16:17 pulsar/
drwxr-xr-x 1 Administrator 197121         0 一月  2  2018 simpleDemo/

Administrator@IZNKXUSFKTG85ER MINGW64 /e/sourceCode

2、新建一个仓库

地址为:ssh://git@git.chinacloud.com.cn:10022/FAST/pulsar/pulsar.git

3、确保你本地的sshkey用户已经是新的仓库的成员

4、执行以下命令:

Administrator@IZNKXUSFKTG85ER MINGW64 /e/sourceCode
$ cd pro-nebula4j.git/

Administrator@IZNKXUSFKTG85ER MINGW64 /e/sourceCode/pro-nebula4j.git (BARE:develop_V2.2)
$ git push --mirror ssh://git@git.chinacloud.com.cn:10022/FAST/pulsar/pulsar.git
Counting objects: 60268, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (20747/20747), done.
Writing objects: 100% (60268/60268), 16.38 MiB | 12.66 MiB/s, done.
Total 60268 (delta 25591), reused 60268 (delta 25591)
remote: Resolving deltas: 100% (25591/25591), done.
To ssh://git.chinacloud.com.cn:10022/FAST/pulsar/pulsar.git
 * [new branch]        anhuigaojian_alpha_v1 -> anhuigaojian_alpha_v1
 * [new branch]        apply-vm -> apply-vm
 * [new branch]        compile -> compile
 * [new branch]        dev_coptest_2.2 -> dev_coptest_2.2
 * [new branch]        develop -> develop
 * [new branch]        develop_0628 -> develop_0628
 * [new branch]        develop_V2.2 -> develop_V2.2
 * [new branch]        develop_fast -> develop_fast
 * [new branch]        develop_origin -> develop_origin
 * [new branch]        develop_v2.2_nologin -> develop_v2.2_nologin
 * [new branch]        develop_vmware -> develop_vmware
 * [new branch]        develop_weston -> develop_weston
 * [new branch]        dky_2.0 -> dky_2.0
 * [new branch]        jiangsu_police -> jiangsu_police
 * [new branch]        jiangsu_project -> jiangsu_project
 * [new branch]        master -> master
 * [new branch]        monitor_2.2 -> monitor_2.2
 * [new branch]        nj-weld -> nj-weld
 * [new branch]        no-aa -> no-aa
 * [new branch]        no-user -> no-user
 * [new branch]        one-aa -> one-aa
 * [new branch]        os4j2 -> os4j2
 * [new branch]        os4j_new2 -> os4j_new2
 * [new branch]        os4jnew -> os4jnew
 * [new branch]        poc_v2.2.1 -> poc_v2.2.1
 * [new branch]        release-1030 -> release-1030
 * [new branch]        service-broker-weston -> service-broker-weston
 * [new branch]        v2.0_bw_release -> v2.0_bw_release
 * [new branch]        vdc -> vdc
 * [new branch]        westone -> westone
 * [new tag]           2.2.1-poc.1 -> 2.2.1-poc.1
 * [new tag]           2.2.1-poc.2 -> 2.2.1-poc.2
 * [new tag]           2.2.170110 -> 2.2.170110
 * [new tag]           2.2.2-poc.1 -> 2.2.2-poc.1
 * [new tag]           2.2.2-poc.2 -> 2.2.2-poc.2
 * [new tag]           2.2.2-poc.3 -> 2.2.2-poc.3
 * [new tag]           2.2.2-poc.4 -> 2.2.2-poc.4
 * [new tag]           V2.0.0-beta1 -> V2.0.0-beta1
 * [new tag]           country-center -> country-center
 * [new tag]           gongan_2016_12_01 -> gongan_2016_12_01
 * [new tag]           nebula4j-api-release -> nebula4j-api-release
 * [new tag]           nebula4j-web-api_V0.1 -> nebula4j-web-api_V0.1
 * [new tag]           v2.0_bluewhale_release -> v2.0_bluewhale_release
 * [new tag]           v2.1 -> v2.1
 * [new tag]           v2.1.2 -> v2.1.2
 * [new tag]           v2.1.3 -> v2.1.3
 * [new tag]           westone_release_2.2.3 -> westone_release_2.2.3
 * [new tag]           westone_release_2.2.4 -> westone_release_2.2.4
 * [new tag]           westone_release_2.2.5 -> westone_release_2.2.5
 * [new tag]           westone_release_2.2.6 -> westone_release_2.2.6
 * [new tag]           westone_release_2.2.7 -> westone_release_2.2.7

 

posted on 2018-07-20 17:36  波神  阅读(240)  评论(0编辑  收藏  举报