將項目從git遷移到gitlab步驟:
第一步:克隆老項目
git clone --mirror https://XXXX/project.git
第二步:設置新的地址
git remote set-url --push origin http://new_XXXXXX/project.git
第三步:push
git push --mirror http://new_XXXXXX/project.git
第四步:讓其他同事執行以下操作,將git地址更新為新的git地址
git remote set-url origin http://new_XXXXXX/project.git