背景
代码仓库所在服务器因为异常断电关机,无法启动,需要进行gitlab工程代码迁移
命令
git clone --mirror <URL to my OLD repo location>
cd <New directory where your OLD repo was cloned>
git remote set-url origin <URL to my NEW repo location>
git push -f origin
背景
代码仓库所在服务器因为异常断电关机,无法启动,需要进行gitlab工程代码迁移
命令
git clone --mirror <URL to my OLD repo location>
cd <New directory where your OLD repo was cloned>
git remote set-url origin <URL to my NEW repo location>
git push -f origin