欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

gitlab上傳公鑰和項(xiàng)目代碼

gitlab上傳項(xiàng)目需要ssh公鑰免交互,本文介紹gitlab設(shè)置公鑰和上傳項(xiàng)目的操作。

成都創(chuàng)新互聯(lián)是專業(yè)的沾益網(wǎng)站建設(shè)公司,沾益接單;提供網(wǎng)站設(shè)計(jì)、成都做網(wǎng)站,網(wǎng)頁設(shè)計(jì),網(wǎng)站設(shè)計(jì),建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進(jìn)行沾益網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴(kuò)展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團(tuán)隊(duì),希望更多企業(yè)前來合作!

一、創(chuàng)建秘鑰對(duì)

[root@localhost ~]# ssh-keygen -t rsa #一路回車即可
gitlab上傳公鑰和項(xiàng)目代碼
二、上傳秘鑰

[root@localhost ~]# cat ~/.ssh/id_rsa.pub #查看公鑰
gitlab上傳公鑰和項(xiàng)目代碼
三、上傳本地代碼

1、要先設(shè)置用戶和郵箱

[root@localhost opt]# git config --global user.name "root"

[root@localhost opt]# git config --global user.email "w135xxxxx@qq.com"

[root@localhost opt]# git config --list

user.name=root

user.email=w135xxxx@qq.com

2、創(chuàng)建一個(gè)本地代碼倉庫

[root@localhost opt]# mkdir push_code

[root@localhost opt]# cd push_code/

3、初始化該倉庫

[root@localhost push_code]# git init

初始化空的 Git 版本庫于 /opt/pull_code/.git/

[root@localhost push_code]# echo "this is test push code" > push.txt

[root@localhost push_code]# ls

pull.txt

4、獲取分支

#這個(gè)分支信息,可以在web界面clon里看到

[root@localhost push_code]# git remote add origin http://192.168.0.8:81/test/hellow.git

5、刷新遠(yuǎn)程倉庫分支

[root@localhost push_code]# git fetch origin --prune

#獲取所有遠(yuǎn)程分支

#現(xiàn)在處于master分支

[root@localhost push_code]# git branch -a

0a

  • master

    remotes/origin/devops

    remotes/origin/master

6、提交代碼

#提交文件到本地倉庫

[root@localhost push_code]# git add push.txt #添加文件

[root@localhost push_code]# git commit -m "this is test push" #添加說明

[root@localhost push_code]# git push origin master #推送代碼至master分支

#小坑

[root@localhost push_code]# git push origin master

Username for 'http://192.168.0.8:81': root

Password for 'http://root@192.168.0.8:81':

To http://192.168.0.8:81/test/hellow.git

! [rejected] master -> master (non-fast-forward)

error: 無法推送一些引用到 'http://192.168.0.8:81/test/hellow.git'

提示:更新被拒絕,因?yàn)槟?dāng)前分支的最新提交落后于其對(duì)應(yīng)的遠(yuǎn)程分支。

提示:再次推送前,先與遠(yuǎn)程變更合并(如 'git pull')。詳見

提示:'git push --help' 中的 'Note about fast-forwards' 小節(jié)。

#解決:重新拉取遠(yuǎn)程代碼倉庫信息,與遠(yuǎn)程倉庫代碼信息保持一致

[root@localhost push_code]# git pull http://192.168.0.8:81/test/hellow.git

Username for 'http://192.168.0.8:81': root

Password for 'http://root@192.168.0.8:81':

來自 http://192.168.0.8:81/test/hellow

  • branch HEAD -> FETCH_HEAD

已經(jīng)是最新的!

7、切換分支

[root@localhost push_code]# git checkout devops

分支 devops 設(shè)置為跟蹤來自 origin 的遠(yuǎn)程分支 devops。

切換到一個(gè)新分支 'devops'

[root@localhost push_code]# git branch -a

  • devops

    master

    remotes/origin/devops

    remotes/origin/master

其他分支上傳代碼方式相同重復(fù)步驟6即可

8、拉取指定分支代碼

git clone -b devops http://192.168.0.8:81/test/hellow.git #-b指定拉取分支的代碼

9、創(chuàng)建分支

git branch slave 創(chuàng)建slave分支

本文名稱:gitlab上傳公鑰和項(xiàng)目代碼
本文路徑:http://aaarwkj.com/article34/jjhspe.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供云服務(wù)器、搜索引擎優(yōu)化、網(wǎng)站設(shè)計(jì)公司虛擬主機(jī)、微信小程序App設(shè)計(jì)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

外貿(mào)網(wǎng)站建設(shè)
免费观看黄片视频在线观看| 亚洲午夜精品日韩乱码| 国产传媒网约在线观看| 欧美一区二区三区有限公司| 日本女人体内射精视频| 亚洲少妇熟女一区二区三区| 日韩福利成人av在线| 精品国产乱码一区二区三区| 日韩黄色资源在线观看| 亚洲伦理国产一国产二| 91久久精品人妻一区二区| 久久99久久精品视频国产| 中文字幕日产乱码一二三区| 91欧美激情另类亚洲| 国产美女精品一区二区三区| 欧美日韩国产一区二区的| 亚洲乱码中文字幕在线观看| 日韩欧美一区二区不卡在线| 亚洲一区二区三区日本在线| 日韩午夜免费一区二区蜜桃| 婷婷中文字幕在线不卡视频| 中文字幕日韩人妻av| 濑亚美莉在线观看一区二区三区| 国产精品水嫩水嫩粉嫩| 国产精品熟女一区二区三区| av在线中文字幕乱码| 蜜桃成人一区二区三区| 国产产品在线免费看91| 亚洲综合成人av在线| 亚洲av乱码一区二区三区观影| 人人狠狠综合久久亚洲| 国产一区二区三区婷婷| 久久精品国产亚洲av清纯| 免费无码不卡av一区二区| 久久这里只有精品视频六| 国产欧美日韩综合激情| 欧美日韩国产综合精品亚洲| 国产av综合一区二区| 国产三级精品大乳人妇| 超碰欧美性欧美最猛性| 国产高清在线a视频大全|