公司git仓库地址变动,需要把以前的项目全部迁移到一个新的仓库,整理了一下方案:
1、git clone --mirror <URL to my OLD repo location>
2、cd <New directory where your OLD repo was cloned>
3、git remote set-url origin <URL to my NEW repo location>
4、git push -f origin
公司git仓库地址变动,需要把以前的项目全部迁移到一个新的仓库,整理了一下方案:
1、git clone --mirror <URL to my OLD repo location>
2、cd <New directory where your OLD repo was cloned>
3、git remote set-url origin <URL to my NEW repo location>
4、git push -f origin