在阿里云code里面新建一個(gè)空的同名項(xiàng)目
把源項(xiàng)目從gitlab上clone下來
進(jìn)入項(xiàng)目目錄
執(zhí)行以下代碼
$ git init
$ git remote add <branch-name> <阿里云code項(xiàng)目地址,例:git@code.aliyun.com:Chan/test.git>
$ git add .
$ git commit
$ git push -u <branch-name> <branch-name>
這里只能一個(gè)一個(gè)branch來遷移,如果項(xiàng)目有幾個(gè)branch,那么就必須checkout到相應(yīng)的branch再執(zhí)行以上操作