天天看点

git服务器项目代码迁移

1,新git服务器创建与旧服务器相同的项目名称
git服务器项目代码迁移
2,电脑本地创建项目文件夹,打开git窗口下载旧服务器项目所有分支代码镜像命令
git clone --bare  旧服务器项目git地址
           
git服务器项目代码迁移
3,进入项目git文件命令
cd DataBus.git
           
git服务器项目代码迁移
4,推送项目所有分支镜像到新git服务地址
git push --mirror 新项目git地址
           
git服务器项目代码迁移

新服务器项目代码分支迁移完成

git服务器项目代码迁移

继续阅读