Git服务器GitLab之搭建和使用(2)

4. 数据迁移(Ubuntu的7.1gitlab迁移到RedHat的7.8)

待写

5. 关于7.8.1的自由注册

配置一下邮箱,就可以自动注册了,但是这样不便于团队的保密工作,还是采用邀请的方式来注册。

6. 将原来仓库的代码上传到新的服务器上,包括commit的记录等log:

zy@zy:~/longmenshan/longmenshan$ git push -u origin master @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the RSA key sent by the remote host is f9:46:83:46:cd:62:60:56:bb:df:19:c0:47:8d:b0:be. Please contact your system administrator. Add correct host key in /home/zy/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /home/zy/.ssh/known_hosts:2 remove with: ssh-keygen -f "/home/zy/.ssh/known_hosts" -R 222.197.180.140 RSA host key for 222.197.180.140 has changed and you have requested strict checking. Host key verification failed. fatal: Could not read from remote repository.

参考帖子:点击打开链接 将之前的known_hosts中的记录删掉即可。 

参考:

1. 《Pro Git中文版》,熟悉git常用操作和基本原理; 

2.《Git 权威指南》,深入学习Git   

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/c018abead700882c061419fad60b6785.html