git库迁移到gitlab

git客户端下载

1、安装git客户端,并在gitlab上创建一个新的项目234

2、下载一份git服务器上的源码

git clone --bare [email protected]:/home/git/test.git

3、进入test.git目录

cd  test.git

4、推送到gitlab库
git push --mirror http://192.168.1.191/root/234.git

猜你喜欢

转载自www.cnblogs.com/xiaoyou2018/p/12765543.html