gitlab

GitLab and Visual Studio Code

谁说胖子不能爱 提交于 2020-01-24 22:09:00
问题 I'm trying to integrate the visual sutdio code as gitlab to perform version control of source codes. I did not find anything that would help me during the google searches, so I'm asking here. Has anyone managed to integrate? I'm using GitLab's free account and I want to commit / push / clone through Visual Studio Code, is it possible? 回答1: In the Marketplace you find a lot of Visual Studio Code Extensions. They are labeled with tags, e.g. tag:git tag:gitlab Which to use depends on your

GitLab and Visual Studio Code

和自甴很熟 提交于 2020-01-24 22:08:10
问题 I'm trying to integrate the visual sutdio code as gitlab to perform version control of source codes. I did not find anything that would help me during the google searches, so I'm asking here. Has anyone managed to integrate? I'm using GitLab's free account and I want to commit / push / clone through Visual Studio Code, is it possible? 回答1: In the Marketplace you find a lot of Visual Studio Code Extensions. They are labeled with tags, e.g. tag:git tag:gitlab Which to use depends on your

Import ZAP Docker Image in GitLab

僤鯓⒐⒋嵵緔 提交于 2020-01-24 21:58:48
问题 I'm trying to use ZAP in my GitLab repository. (link to the docker image for ZAP: https://github.com/zaproxy/zaproxy/wiki/Docker) But during the execution of the script in the 'yml' file, I got the 'proxy' error, now instead, after some modifications, I get this error: File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 621, in main raise RuntimeError ('Click will abort further execution' RuntimeError: Click will abort further execution because Python is configured to use ASCII

How to use https with gitlab.com?

試著忘記壹切 提交于 2020-01-24 20:19:05
问题 A while back I was able to use https with gitlab.com . I am currently using a company that I don't want to add to ssh key to gitlab, so I tried to use https to pull and push on gitlab.com but it seems like I kept getting 500 error. I remember I have to add some token for this but I don't remember exactly how I can use https with gitlab and there seems to be no documentation for this. 回答1: First you must generate an access token from: https://gitlab.com/profile/personal_access_tokens Then you

gitlab的用户管理和token的生成

痴心易碎 提交于 2020-01-24 16:35:19
gitlab的用户管理 group分组、 group分组是一种父子目录结构,group下管理project项目, 权限分配一般给group分配权限,下面的project继承proup的权限 gitlab用户权限管理https://blog.csdn.net/qq_37674858/article/details/80825077 官方文档:https://docs.gitlab.com/ee/user/permissions.html gitlab的项目token和用户token gitlab_token是gitlab用户的setting中生成的字符串,使用户可以通过http的形式下载代码 在gitlab用户的setting--access token--填写name+api+read_repository--create personal access token,会生成一个字符串(只出现一次,小心保管) 下载命令: curl -X GET -H "PRIVATE-TOKEN:{{ gitlab_token }}" http://gitlab.sihai.com/api/v4/projects/qp-server%2Fgo_library/repository/archive?sha={{go_library_branch}} -o ./go_library_branch.tar

安装GitLab出现ruby_block[supervise_redis_sleep] action run

隐身守侯 提交于 2020-01-24 14:52:09
我这里使用的是centos 7 64bit系统,我试过centos 64bit系统也是可以的。 1. 安装依赖软件 yum -y install policycoreutils openssh-server openssh-clients postfix 2.设置postfix开机自启,并启动,postfix支持gitlab发信功能 systemctl enable postfix && systemctl start postfix 3.下载gitlab安装包,然后安装 centos 6系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6 centos 7系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7 我的是centos7,所以我在https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7中找了个gitlab8.0.0版本,建议下载一个比较新的版本,我这里选了一个比较旧的版本仅仅是实验记录。 下载rpm包并安装: wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.0.0-ce.0.el7

Git repository size remains large on remote (Gitlab) after purging of large files with git filter-branch then git push --force

99封情书 提交于 2020-01-24 14:17:29
问题 I have followed the instructions on Gitlab's docs about "Reducing the repository size using Git " by purging of large files from history: https://docs.gitlab.com/ee/user/project/repository/reducing_the_repo_size_using_git.html The instructions, and I quote, are as follows: git checkout master git filter-branch --force --tree-filter 'rm -f path/to/big_file.mpg' HEAD git reflog expire --expire=now --all && git gc --prune=now --aggressive git push --force origin master I then deleted my local

Git秘钥生成以及Gitlab配置(附以下问题解决方法:Key is invalid Fingerprint cannot be generated)

旧时模样 提交于 2020-01-24 01:03:51
在进行Git密钥配置时,总是提示: “The form contains the following errors: Key is invalid Fingerprint cannot be generated” 如下图: 查找了不少资料,大部分说粘贴的字符与实际生成的不一致,例如windows环境下,如果有换行习惯带"\r\n",去除即可。几次尝试都不可以。 最后发现是粘贴的内容有问题, 只黏贴了密钥,没有前贴前面的“ssh-rsa” 和后面的邮箱 。 谨记: 要粘贴pub密钥里面的所有内容(同时注意粘贴不要带换行符)。 附以下内容的参考链接:http://www.cnblogs.com/xiuxingzhe/p/9303278.html 安装Git:详见 http://www.cnblogs.com/xiuxingzhe/p/9300905.html 开通gitlab(开通需要咨询所在公司的gitlab管理员)账号后,本地Git仓库和gitlab仓库仍然不能传输项目,原因是要通过SSH加密才能传输,所以需要让gitlab认证本地的SSH Key 认证之前,则先使用Git生成SSH Key 1 Git生成秘钥 1.1 确认本地秘钥 SSH 秘钥默认储存在账户的主目录下的 ~/.ssh 目录 如:C:\Users\BF100400\.ssh\ 查看是否包含id_rsa和id_rsa

在团队中使用GitLab中的Merge Request工作模式

冷暖自知 提交于 2020-01-23 21:00:30
在团队中使用GitLab中的Merge Request工作模式 Jun 1, 2018 | Git | 阅读 在工作中使用 Git 已有5年多的时间了, Git 分布式的工作机制以及强大的分支功能使得在团队中推广使用没有受到什么阻碍。一直以来都是采用的分支管理模式,我把项目的开发分为三个阶段:开发、测试和上线。 分支管理模式 开发阶段 除了 master 分支创建一个供所有开发人员开发的 dev 分支; 开发人员在 dev 分支上进行工作,随时随地 commit ,每天 push 一次到服务器; push 代码前需要进行 pull 操作,因为有可能在之前有别的成员先进行了 push 操作,如果有冲突还需要进行冲突解决; 每天上班后所有成员对 dev 进行 pull 操作,获取所有成员 push 的代码,有冲突需要解决; 团队Leader每天将 dev 合并一次到 master 。 测试阶段 测试进入后就需要添加 test 分支; 在开发人员将代码 push 到 dev 分支后,可以在 dev 基础上创建 test 分支,测试人员以 test 分支搭建测试环境,开始测试; 开发人员在接受到 bug 后,直接在测试分支上修改,然后让测试人员进行验证; 每天团队Leader将测试分支上修改的 bug 合并到 dev 分支上,这样所有团队成员当天修复的 bug 都会在第二天被团队其他人

centos7安装部署gitlab服务器

旧城冷巷雨未停 提交于 2020-01-23 11:50:28
[https://www.cnblogs.com/wenwei-blog/p/5861450.html] 我这里使用的是centos 7 64bit,我试过centos 6也是可以的! 1. 安装依赖软件 yum -y install policycoreutils openssh-server openssh-clients postfix 2.设置postfix开机自启,并启动,postfix支持gitlab发信功能 systemctl enable postfix && systemctl start postfix 3.下载gitlab安装包,然后安装 centos 6系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6 centos 7系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7 我的是centos7,所以我在https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7中找了个gitlab8.0.0版本,建议下载一个比较新的版本,我这里选了一个比较旧的版本仅仅是实验 下载rpm包并安装: wget https://mirrors.tuna.tsinghua.edu.cn