gitlab的權限管理-issue管理
設置管理密碼
創建gitlab群組
添加用戶到項目組
給組創建項目
添加ssh-key實現免密管理
ssh-keyLinux怎么創建?這個是基礎啦,不細說。粘貼公鑰ssh-rsa
拉取代碼
http方式
我開啟了雙因子,http方式的時候,令牌就是密碼
ssh方式
先hosts修改制定一下域名,外網22端口是不通的啊
/etc/hosts
如果設置了sshkey仍然不通,參考:
https://www.cnblogs.com/wangxu01/articles/11059335.html
上傳代碼
http方式,令牌:i9wtzCB_AySbofoLMdZx
[admin@pe-jira API]$ echo '2222' >> index.html [admin@pe-jira API]$ git add index.html [admin@pe-jira API]$ git commit -m "add 3" [master 9e4d1e7] add 3 1 file changed, 1 insertion(+) [admin@pe-jira API]$ git push origin master Username for 'http://gitlab.corp.zhaonongzi.com': root Password for 'http://root@gitlab.corp.zhaonongzi.com': 對象計數中: 3, 完成. Delta compression using up to 4 threads. 壓縮對象中: 100% (2/2), 完成. 寫入對象中: 100% (3/3), 283 bytes | 0 bytes/s, 完成. Total 3 (delta 0), reused 0 (delta 0) To http://gitlab.corp.zhaonongzi.com/ris/API.git 2dc4be6..9e4d1e7 master -> master [admin@pe-jira API]$
公開的密鑰-只能下載代碼(Jenkins)可以面向所有項目-Jenkins還沒裝先放放