如何将项目从码云上面迁移到gitlab

2019-03-06  本文已影响0人  含笑州

1.cd 到创建的文件夹下面或者通过mkdir 文件夹名字创建

2.在该文件夹下面执行git clone --bare 原仓库地址

git@github.wanda-itg.local: Permission denied (publickey).fatal: Could not read from remote  repository.Please make sure you have the correct access rights and the repository exists.

   要是报上面的错误可以忽略,重新执行命令即可

   3.cd 到.git文件夹下面

   4,去掉分支保护

 5.git push --mirror 新仓库地址(注意新仓库中的分支保护去掉)

上一篇下一篇

猜你喜欢

热点阅读