Ubuntu搭建Git服務器和gitlab服務(實測可以,特此記錄)

-------搭建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 protected]","[email protected]"是你的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 [email protected]:/srv/sample.git
git clone [email protected]:/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 "[email protected]"

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 "[email protected]"

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章