gitlab

On Gitlab, how to compare a file of two different commits

百般思念 提交于 2019-12-22 03:16:04
问题 On Gitlab, how to compare a file of two different commits? I know that that on command line git, the command is: git diff commit1 commit12 -- file_name what is the link format to do this on gitlab? see my related question 回答1: It will compare commits, You will be able to find file in list. 1) go to Repository > Compare 2) paste: https://gitlab.com/$USER/$REPO/compare?from=$SHA1&to=$SHA2 url 3) hit enter (notice: gitlab will set 'Source' and 'Target' properly) 4) click button 'compare' 回答2: it

How to default to side-by-side view in GitLab

杀马特。学长 韩版系。学妹 提交于 2019-12-22 01:54:01
问题 How can I make Side-by-side be the default diff for my GitLab installation or project or profile? 回答1: Update February 2016 The issue is now at issue CE 3071 and... was resolved by commit 9fdd605! A cookie now retain your diff view choice, with GitLab 8.5.0+. Original answer (February 2015) That doesn't seem to be possible right now, and can be voted up at the suggestion 7082397 Remember side-by-side diff choice Right now when I want to review code, I have to choose side-by-side diff each

How to create repository badges in gitlab?

六眼飞鱼酱① 提交于 2019-12-22 01:28:24
问题 How do I create badges for my project in gitlab? I know there is a webpage for it here https://docs.gitlab.com/ee/user/project/badges.html but I have no idea what they are saying. suppose my project is here https://gitlab.com/username/userproject what should be the link and the badge image link? 回答1: Usually you can get the url for the badges from the respective services. For example the url of the pipeline batch for your repo would be: https://gitlab.com/username/userproject/badges/master

How to change port GitLab on CentOS 6?

拈花ヽ惹草 提交于 2019-12-22 01:27:40
问题 I tried to change port number on these files. But when I run gitlab-ctl reconfigure for updating. I can't access my link ( http://myaddress.example:8790 ) Those files which I changed are: /var/opt/gitlab/gitlab-rails/etc/gitlab.yml /opt/gitlab/embedded/conf/nginx.conf /opt/gitlab/embedded/cookbooks/gitlab/attributes/default.rb /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml /var/opt/gitlab/nginx/conf/gitlab-http.conf In /etc/gitlab/gitlab.rb I change external_url "http://myaddress

No remotes/origin/HEAD with gitlab

假装没事ソ 提交于 2019-12-21 21:19:08
问题 I'm pretty new to git, but I've been playing around with it on a remote server I set up and I'm pretty sure that I understand the basics. I just set up gitlab and pushed some of my code to a new project on it. What I did was: Get all my code in a directory git init git add . git commit -m "Initial commit" git push origin master Where origin was set up with: git remote add origin git@1.2.3.4:myproject.git Now when I do git branch -a I see: * master remotes/origin/master Whereas when I was

Unable to change GitLab timezone

萝らか妹 提交于 2019-12-21 21:12:51
问题 I am having a little bit of an issue trying to find where to change the GitLab timezone for my profile through the web UI. Looking at some other posts and documentation which mentioned there was an option between Public email and Preferred language , this option I am unable to find under my profile settings. Hopefully someone else has experienced the same issue, and found a solution to this, that could help point me in the right direction 回答1: If this is not exposed by the GitLab UI, you

ldap系列-基础知识

陌路散爱 提交于 2019-12-21 20:34:31
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> ldap 是什么? LDAP(Lightweight Directory Access Protocol)即轻量级目录访问协议,提供 信息服务 。那啥是目录服务呢? 目录服务是一种特殊的 数据库 系统,其专门针对 读取,浏览和搜索 操作进行了特定的优化。目录一般用来包含描述性的,基于属性的信息并支持精细复杂的过滤能力。目录一般不支持通用数据库针对大量 更新 操作操作需要的复杂的事务管理或回卷策略。 LDAP目录中的信息是是按照树型结构组织,具体信息存储在条目(entry)的数据结构中。条目相当于关系数据库中表的记录;条目是具有区别名DN (Distinguished Name)的属性(Attribute),DN是用来引用条目的,DN相当于关系数据库表中的关键字(Primary Key)。属性由类型(Type)和一个或多个值(Values)组成,相当于关系数据库中的字段(Field)由字段名和数据类型组成,只是为了方便检索的需要,LDAP中的Type可以有多个Value,而不是关系数据库中为降低数据的冗余性要求实现的各个域必须是不相关的。LDAP中条目的组织一般按照地理位置和组织关系进行组织,非常的直观。LDAP把数据存放在文件中,为提高效率可以使用 基于索引 的文件数据库,而不是关系数据库。

GitlabCi deploy on multiple servers

喜夏-厌秋 提交于 2019-12-21 18:35:13
问题 I use Gitlab runner and works fine for a single server. The gitlab-ci.yml is simple: stages: - test - deploy test: stage: test image: php tags: - docker script: - echo "Run tests..." deploy: stage: deploy tags: - shell script: - sh deploy.sh As i said this is fine for a single server but to deploy same app on another server? I tried with same gitlab-runner config (same conf.toml) but then it was only updating one of them randomly. Is there somehow gitlab Ci to be triggered by more than 1

Jenkins 使用

喜夏-厌秋 提交于 2019-12-21 13:13:25
一、简介 1. Make工具 这个工具是最最原始的工具了,在linux下编过程序,看过比较大的c/c++代码的人应该都听说过这个工具(Windows下对应的工具为nmake)。它负责组织构建的过程,也就是负责指挥编译器如何编译,连接器如何连接,最后生成一个可用的文件。 2. Ant工具 但是有人觉得make工具的很难使用,他的语法很难理解,就发明了ant 3. Maven工具 Maven像make一样是个构建(build)工具,Maven工具是对ant工具的进一步改进(这么说不太准确,但是可以这么理解)。在make工具中,如果我们要编译某些源文件,我们肯定首先要安装编译器等工具,但是有时候需要不同版本的编译器,如果把每个包都下载下来,在makefile中进行配置制定,需要的包非常多,很难管理,于是人们发明了Maven工具。Maven使用配置文件pom.xml对环境进行配置,例如设定编译器的版本,设定所需支持包的URL,这样maven就可以自动去下载所需的包。这样如果需要对构建环境进行改变时,直接改变pom文件就可以了,maven会自动网络上下载配置的包。Maven可以利用一些别的工具,实现对编译结果的统计,对源代码的检查,对于代码的测试等。 4. Jenkins工具 其实Maven还是不够强大。Maven可以控制编译,控制连接,可以生成各种报告,可以进行代码测试

Limit Access of GitHub or Bitbucket Repository

爷,独闯天下 提交于 2019-12-21 12:00:13
问题 Is there any way to limit the access of bitbucket or Github repository from a specific IP Address. Which means I want to access my organisation repositories only from my office. The another this is that is there any way to block with a time being? Any of the git providers supporting this feature? The SSH key is only useful for the git action without entering passwords and username? Any way to solve this issue? I think many of the IT Companies are using this service for securing their source