gitlab 镜像迁徙

gitlab 镜像迁徙

  // 拉取镜像
  git clone --mirror https://gitlab.xxxxx.com/xxxxx/xxxxxx.git  (旧的仓库地址)
  // 修改仓库地址
  git remote set-url --push origin  http://gitlab.xxxxx.com/xxxxx/xxxxxx/xxxxxxx.git (新的仓库地址)
  // 推送镜像
  git push --mirror http://gitlab.xxxxx.com/xxxxx/xxxxxx/xxxxxxx.git (推送 新的仓库地址)

  // 设置推送
  git config http.postBuffer 524288000
  git config --global http.lowSpeedLimit 0
  git config --global http.lowSpeedTime 999999

你可能感兴趣的:(gitlab 镜像迁徙)