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

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è)
大片天天看菲色亚洲黄色| 天天操夜夜操狠狠操91| 国产日产亚洲欧美综合另类| 中国亚洲黄色录像免费看| 老湿机午夜十分钟视频| 国产女同一区二区三区久久| 中文字幕五月婷婷免费| 中文字幕日韩av综合在线| 亚洲人成网站18禁止人| 在线观看免费在线观看免费| 蜜臀99久久精品久久久| 国产女主播精品视频一区| 国产精品亚洲国产精品| 日本色网一区二区三区四区| 成人黄色小视频下载| 久久久国产精品9999综合| 亚洲最大色网在线观看| 国产成人午夜视频免费一区| 精品蜜臀国产av一区二区| 日本一区二区日本一区| 91老熟女露脸大合集| 欧美视频在线观看香蕉| 欧美一区二区三区日韩色| 亚洲日本中文字幕免费观看| 国产精品剧情在线播放| 国产白丝诱惑在线视频| 伊人性伊人情亚洲综合| 韩国三级在线视频网站| 免费在线观看欧美色妇| 久久久精品国产亚洲av色哟哟| 老湿机午夜十分钟视频| 欧美精品中出一区二区三区| 变态另类日韩欧美高清| 日本免费观看一区久久| 婷婷中文字幕在线不卡视频| 久久婷婷国产综合精品青草| 麻豆精品新av中文字幕| 欧美日韩三级性生活水平| 国产精品综合久久久久久| 国产精品99久久久久久| 精品久久久久久久久999|