git項目遷移


將項目從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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM