gitlab

Dealing with Git Corrupt objects and 'has dot git' in tree

血红的双手。 提交于 2019-12-07 17:50:51
问题 I have tried rewriting history using filter branch in order to delete few memory occupying SHA's (~ more than 300 MB) using the below command : git filter-branch --index-filter \ 'git rm --ignore-unmatch --cached <Filename>' -- 6d5a325^.. though it succeeds rewriting history but post garbage collection when ever I try to push forcefully it gives me the object corruption error. Also,I would really appreciate if any one could help me in figuring out the 'has dot git' issue in my tree object,as

centos7安装gitlab

回眸只為那壹抹淺笑 提交于 2019-12-07 16:00:12
Gitlab 是一个用 Ruby on Rails 开发的开源项目管理程序,可以通过 WEB 界面进行访问公开的或者私人项目。它和 Github 有类似的功能,能够浏览源代码,管理缺陷和注释。 下面介绍在 centos7 上安装 gitlab 的方法, gitlab 在不同的操作系统中安装的方法不一样,在同一种操作系统不同版本上安装的方法也不一样, cengos6 和 centos7 的安装方法也不一样。 1 下载包和安装 useradd abc 随便添加一个普通用户,别添加 git 用户,查看 /etc/passwd 文件,如果发现其中有 git 用户,用 userdel 命令删除,接下来用新添加的用户完成下列操作: curl -O https://downloads-packages.s3.amazonaws.com/centos-7.0.1406/gitlab-7.4.3_omnibus.5.1.0.ci-1.el7.x86_64.rpm 如果发现下载速度慢,将下载地址复制到迅雷中下载,然后将下载的包 copy 到 centos7 系统中。 sudo yum install git.x86_64 sudo yum install openssh-server sudo systemctl enable sshd sudo systemctl start sshd sudo

How to change the host IP sent in emails to new GitLab users to a publicly visible IP, not the local GitLab IP?

隐身守侯 提交于 2019-12-07 15:26:32
I have set up a Bitnami GitLab stack as a running virtual machine instance using VMWare Workstation on my personal dedicated Windows server (host) running out of my home office. My dedicated Windows server host has a publicly visible static IP address. I have successfully gained public access to the GitLab application running as guest by setting up port forwarding within VMWare Workstation's Virtual Network Editor (using NAT translation, not bridging). I am able to access the GitLab web interface from any internet-connected computer just by typing the static IP (including my chosen port). I

gitlab+jenkins持续集成+自动化部署(二)

笑着哭i 提交于 2019-12-07 14:44:29
1、jenkins 介绍: jenkins 是一个平台,真正运作的都是插件,这是jenkins流行的原因,jenkins什么插件都有,是基于java开发的持续集成的工具; 官网: https://jenkins.io/ 1、首先需要安装 JDK,因为 jenkins 是用 java 写的,如果对版本有要求,可以到 oracle 官网下载 jdk; oracle 官网地址: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 这里采用 yum 安装方式: IP地址: 192.168.42.129 [root@localhost_03 fenye]# yum -y install java-1.8.0 [root@localhost_03 yum.repos.d]# rpm --import http://pkg.jenkins.io/redhat/jenkins.io.key #配置yum 导入资源库的GPG公钥 [root@localhost_03 yum.repos.d]# yum install -y jenkins [root@localhost_03 yum.repos.d]# systemctl start jenkins 2、查看启动的进程和监听端口号:

How can I change the mirroring settings in Gitlab over the API?

家住魔仙堡 提交于 2019-12-07 14:07:21
问题 I want to change the Gitlab mirroring settings for each of my repositories. Is it possible to do this over the Gitlab API? The options the Gitlab WebUi allows, are the following: How can I change them via the API? Remark: This is not the same question as "How can I tell Gitlab to mirror my Github repositories over the API?" as there my question was how to start the mirroring, here I want to know how I can change the mirroring settings. 回答1: On https://docs.gitlab.com/ee/api/projects.html#edit

GitLab pull submodules inside CI

元气小坏坏 提交于 2019-12-07 11:05:15
问题 I have a GitLab project that utilises GitLab CI. The project also uses submodules, both the project and it's submodules are under the same GitLab account. Here is my .gitmodules file [submodule "proto_contracts"] path = proto_contracts url = https://gitlab.com/areller/proto_contracts.git I also have this piece in the .gitlab-ci.yml file variables: GIT_SUBMODULE_STRATEGY: recursive However, when i run the CI I get this error fatal: could not read Username for 'https://gitlab.com': No such

Referencing gitlab secrets in Terraform

守給你的承諾、 提交于 2019-12-07 10:23:23
问题 I am quite new to Terraforms and gitlab CI and there is something that I am trying to do here with it. I want to use Terraform to create an IAM user and a S3 bucket. Using policies allow certain operations on this S3 bucket to this IAM user. Have the IAM user's credentials saved in the artifactory. Now the above is going to be my core module. The core module looks something like the below: Contents of : aws-s3-iam-combo.git (The credentials for the IAM user using which all the Terraform would

> You asked to pull from the remote '--prune'

本小妞迷上赌 提交于 2019-12-07 08:25:30
I'm getting this error when using one of my aliases bdone You asked to pull from the remote '--prune', but did not specify a branch. Because this is not the default configured remote for your current branch, you must specify a branch on the command line. This is the alias I use alias.bclean !f() { git branch --merged ${1-master} | grep -v ${1-master}$ | xargs git branch -d; }; f alias.bdone !f() { git checkout ${1-master} && git up && git bclean ${1-master}; }; f I have nothing to commit nothing to commit, working directory clean VonC You asked to pull from the remote ' --prune ', but did not

Gitlab 6.1 push Rejected / Error

独自空忆成欢 提交于 2019-12-07 08:08:50
问题 Before i use gitlab 5.3 and all works fine. Now i upgrade to gitlab 6.1 via 5.4 and 6.0 and now i can't push. İnstallation check on server: root@ks:/home/git/gitlab# sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production System information System: Debian 6.0.7 Current User: git Using RVM: no Ruby Version: 1.9.3p327 Gem Version: 2.1.8 Bundler Version:1.3.5 Rake Version: 10.1.0 GitLab information Version: 6.1.0 Revision: b595503 Directory: /home/git/gitlab DB Adapter: mysql2 URL:

Error when connecting mylyn Gitlab connector to Eclipse

空扰寡人 提交于 2019-12-07 08:06:36
问题 I'm trying to configure the Mylyn Gitlab Connector for Eclipse Oxygen v4.7.1a but when I try to add a new task it throws me an exception and it does not let me continue with the creation of the new task. Enter correctly my data and the url address of the gitlab repository and even probe with several url and with all of them throw me the same exception. Exception Stack Trace: java.lang.reflect.InvocationTargetException at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:398) at