gitlab

How to clone all projects of a group at once in GitLab?

这一生的挚爱 提交于 2020-01-11 15:15:13
问题 In my GitLab repository, I have a group with 20 projects. I want to clone all projects at once. Is that possible? 回答1: Not really, unless: you have a 21st project which references the other 20 as submodules. (in which case a clone followed by a git submodule update --init would be enough to get all 20 projects cloned and checked out) or you somehow list the projects you have access (GitLab API for projects), and loop on that result to clone each one (meaning that can be scripted, and then

Deploying GitLab pages for different branches

吃可爱长大的小学妹 提交于 2020-01-11 09:17:16
问题 I am deploying my React app using GitLab Pages, and it works well. Here is my gitlab-ci.yml : # Using the node alpine image to build the React app image: node:alpine # Announce the URL as per CRA docs # https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#advanced-configuration variables: PUBLIC_URL: / # Cache node modules - speeds up future builds cache: paths: - client/node_modules # Name the stages involved in the pipeline stages: - deploy #

Gitolite prompts for password only on central server with SSH registered

北慕城南 提交于 2020-01-11 07:34:19
问题 I am running gitlab which uses gitolite on a central repository Ubuntu machine and have several users that connect to this machine after adding their public SSH keys via Gitlab's web interface. The different users on their own machines can successfully push and pull from the central repository machine just fine. On the machine itself, I cannot have my user push or pull to the central repository. It always asks for git's password! How can I fix this? On a remote machine with SSH key registered

Action mailer SMTP google apps

ぃ、小莉子 提交于 2020-01-11 05:08:06
问题 I tried to configure actionmailer to send via google apps with smtp. config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "mydomain.com", :user_name => "username", :password => "password", :authentication => 'plain', :enable_starttls_auto => true } config.action_mailer.perform_deliveries = true config.action_mailer.raise_delivery_errors = true However whenever gitlab tries to send an e-mail: Sent mail to

git post-receive hook “empty ident name”

隐身守侯 提交于 2020-01-11 04:22:05
问题 I have built the following post-receive hook: #!/bin/sh cd /var/node/heartbeat/ || exit unset GIT_DIR echo $USER git pull --no-edit When I'm pushing to the repository the following error is returned: remote: remote: From server.net:chris/heartbeat remote: c0df678..5378ade master -> origin/master remote: remote: *** Please tell me who you are. remote: remote: Run remote: remote: git config --global user.email "you@example.com" remote: git config --global user.name "Your Name" remote: remote:

Importing Gitlab Wiki to new Gitlab instance

落爺英雄遲暮 提交于 2020-01-11 03:24:05
问题 Trying to deploy a new wiki into gitlab from a previous gitlab server. I know how to create a bundle file: git bundle create wiki.bundle --all This gives me a bundle file of my wiki (called wiki.bundle) and when opened there is a lot of markdown files that correspond to the wiki repository. When I try to import it into the new project there are two repository types for the repository. For example, let's say the new wiki is called "new wiki"; this would yield two files in the filesystem: new

Gitlab on port 8080

佐手、 提交于 2020-01-11 02:22:42
问题 I'm currently in the process of trying to get Gitlab omnibus installed on my private Debian server, and it works perfectly on port 80, the problem is I also have an Apache server listening on port 80. So I'm trying to get Nginx listening on port 8080 but for some reason I'm getting a "502 Gitlab is not responding" Error I have edited both "external_url" in gitlab.rb and also the port number under the server block in the nginx.conf file. and no joy. If someone could help me that would be great

GIT使用手册

依然范特西╮ 提交于 2020-01-11 01:23:21
GIT使用手册 1.Git安装 1.1.在windows上安装git 下载git安装包地址:https://git-scm.com/downloads 双击安装即可,安装完成后,在开始菜单里找到“Git”->“Git Bash”,蹦出一个类似命令行窗口的东西,就说明Git安装成功! 1.2.在centos上安装git 执行命令:yum –y install git 1.3.设置用户信息 $ git config --global user.name "Your Name" $ git config --global user.email "email@example.com" 执行以上命令后默认在C:/User/$USER目录下生成.gitconfig文件。 命令当中–global表示你所有的项目都会默认使用这里配置的用户信息如果要在某个特定的项目中使用其他名字或者电邮,只要去掉 --global选项重新配置即可,新的设定保存在当前项目的 .git/config 文件里。 2.创建Git仓库 2.1.创建仓库 首先创建一个空目录,然后进入这个目录执行git init就完成了本地仓库的创建。 创建好本地库后在库目录中可以看到.git文件夹,所有 Git 需要的数据和资源都存放在这个目录中。 3.Git基本操作 3.1.添加文件到git库 首先创建一个文件夹叫myproject

How do I enable cloning over SSH for a Gitlab runner?

佐手、 提交于 2020-01-10 20:51:55
问题 I am having some trouble cloning large repositories over HTTP on my Windows Gitlab runner. I've tried several methods to do shallow clones or disable clone compression. Still no luck. Cloning the same repository over SSH works great as a temporary solution and I would like to get this working on our Gitlab CI process. The issue now stands where I have no idea how to use SSH as a clone method for the gitlab-multi-runner. It just seems to use HTTP as a default, and my only options regarding

How do I enable cloning over SSH for a Gitlab runner?

梦想与她 提交于 2020-01-10 20:51:07
问题 I am having some trouble cloning large repositories over HTTP on my Windows Gitlab runner. I've tried several methods to do shallow clones or disable clone compression. Still no luck. Cloning the same repository over SSH works great as a temporary solution and I would like to get this working on our Gitlab CI process. The issue now stands where I have no idea how to use SSH as a clone method for the gitlab-multi-runner. It just seems to use HTTP as a default, and my only options regarding