-------搭建Git服务器---------------------------------------
1、vm+pw
2、Ubuntu
3、自由复制//安装完tool 直接拖拽即可
https://www.cnblogs.com/mmdln/p/9071525.html //UBUNTU的默认root密码是多少,修改root密码
4、xudabin xyd123456
4.2、秘钥生成//在git Bash Here 里
ssh-keygen -t rsa -C "email@email.com","email@email.com"是你的github账号
5、save the key (/home/xudabin/.ssh/id_rsa)
6、https://blog.csdn.net/weixin_42219068/article/details/80865634
7、git IP地址 192.168.227.128 216房间:s192.168.227.129 utuntuIp192.169.21.160
8、客户端地址:192.168.31.116 公司 192.169.31.114 216房间hp 192.169.30.245
9、 git clone git@192.168.227.128:/srv/sample.git
git clone git@192.168.56.101:/home/git/repositories/repository
11、https://blog.csdn.net/dreamwbt/article/details/81255558
12、https://www.cnblogs.com/zi-xing/p/4501628.html //☆可以加公钥、clone☆ —TODO—搭建
Git服务器
12.2 、sudo -i
13、git config --global user.name “xudabin”
14、git config --global user.email "xudabin2009@163.com"
15、
https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/0013743
256916071d599b3aed534aaab22a0db6c4e07fd0000
16、
git remote add origin 你的远程库地址 // 把本地库与远程库关联
git push -u origin master // 第一次推送时
git push origin master // 第一次推送后,直接使用该命令即可推送修改
17
https://blog.csdn.net/Snow_loveLife/article/details/80519998
18、git分支的创建
https://baijiahao.baidu.com/s?id=1611550648685439298&wfr=spider&for=pc
y.pub >> /home/git/.ssh/authorized_keys
mnt/hgfs/sharefile
id_rsa.pub
cat /mnt/hgfs/sharefile/id_rsa.pub >> /home/git/repositories
ssh-keygen -t rsa -C "xudabin2009@163.com"
cat y.pub >> .ssh/authorized_keys
--------------gitlab华丽的分割线----------------------------------
1、搭建gitlab
https://blog.csdn.net/qq_36467463/article/details/78283874
2、gitlab web页面
https://blog.csdn.net/sinat_16998945/article/details/80996951