gitlab(四):gitlab的权限管理-issue管理

 

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还没装先放放

 

posted on 2019-06-20 16:13  光阴8023  阅读(2460)  评论(0编辑  收藏  举报