gitlab

Error 401 when pushing to Git (GitLab)

谁说胖子不能爱 提交于 2019-12-22 09:23:19
问题 I am getting the error Total 4 (delta 2), reused 0 (delta 0) error: RPC failed; result=22, HTTP code = 401 When pushing to a git repository on GitLab. It used to work. 回答1: I had the same issue: public repos don't force git to authenticate on the first request, and git doesn't offer authentication (at least as of version 1.7.9) on subsequent requests of the same push. This pull request for GitLab should fix it; tested on GitLab 6.3 but it may apply fine on older versions too (please let me

Is is possible to use Gitlab as an oauth provider

◇◆丶佛笑我妖孽 提交于 2019-12-22 08:48:32
问题 I know that its possible to log into gitlab with external providers such as github but I was wondering if it can be used to authenticate users from my application. Is there an oauth endpoint that I can use. 回答1: It should be possible since the suggestion "Oauth system for third party application" seems completed with GitLab 7.7 (which is to be released) It would be powerful to have an oauth authentication system with application management like Github. If this feature appear on Gitlab,

Gitlab returns “No Repository” even though the repository exists in the git_data_dirs path(s)

柔情痞子 提交于 2019-12-22 08:21:36
问题 Summary After backup and migrate, some repositories return "No Repository" error in the web console, and cannot be cloned. The repository is verified to exist as specified in the git_data_dirs folder. As a test I can clone the "No repository" project from the repositories/ folder directly, so there seems to be nothing wrong with the repo itself. Steps to reproduce Not sure how it can be reproduced, but here are the steps i've gone through: backup project on primary server restore tarball on

Git: how to set remote in existing repo

别说谁变了你拦得住时间么 提交于 2019-12-22 07:54:13
问题 One question please I have a project on git with differents branches: Master Pre Dev .... I've installed my project files in another server by FTP (not by git pull or git clone) ir order to create a dev enviroment. The folder of the project in dev enviroment don't have a git repo. Can I set that this folder is a existing repo (dev branch) without do a git pull or git clone? 回答1: Go to your project folder. Add a remote origin with your existing repository URL. $ git init $ git remote add

Github for Windows with Gitlab community edition

非 Y 不嫁゛ 提交于 2019-12-22 06:53:38
问题 Having searched here on Stack Overflow and found this question, I now understand that Github for Windows will work with Gitlab. I'm using the Community edition of Gitlab on a local server and I can't get it to work, so just to expand upon the question I've linked above, can anyone confirm if it will work with the community edition of Gitlab? I've tried to connect with my email and password, with the URL set to the base URL of the installation ( https://git.example.com/ ), am I perhaps just

How to pull NPM dependency from private GitLab Git repo during GitLab CI build

做~自己de王妃 提交于 2019-12-22 05:23:30
问题 I have a job in my .gitlab-ci.yml file which does an npm install like so: test: image: node:10 script: - npm install - npm test The problem is that I'm referencing a private GitLab repo in my package.json : "dependencies": { "internal-dep": "git+https://gitlab.com/Company/internal-dep.git", ... The npm install command works locally, since I'm already authed against GitLab, but fails on GitLab CI. How do I get internal-dep to resolve successfully on GitLab CI? 回答1: There are two approaches I

GitLab SSH keys stopped working

一笑奈何 提交于 2019-12-22 04:20:46
问题 OK, I've stumbled on this topic many times, but this is the first time that none of the regular solutions worked. I have a CentOS 6.4 server running GitLab. It's been working great with 20+ users and 60+ projects, but about 5 hours ago, my main staging server was unable to connect to the GitLab machine for the first time using key authentication and it prompted for password. I regenerated the RSA key and added it to my deploy keys, but that failed as well. Next, I tried to create a new user

Kubernetes(k8s)集群部署(k8s企业级Docker容器集群管理)系列目录

安稳与你 提交于 2019-12-22 04:14:12
0、目录 整体架构目录: ASP.NET Core分布式项目实战-目录 k8s架构目录: Kubernetes(k8s)集群部署(k8s企业级Docker容器集群管理)系列目录 此文阅读目录: 1、闲聊 2、部署流程介绍 3、部署Harbor仓库 4、jenkins-slave镜像搭建 5、部署jenkins 6、jenkins+gitlab挂钩 7、k8s部署asp.net core项目 一、闲聊 现在基本上是隔几天写一篇文章,还是不够勤奋,努力把自己打造成勤奋的人,把工作上面所用到的技术点分享给大家。为了研究k8s自动化部署aspnet core项目,足足花费了我一个礼拜的时间,过程是痛苦的,但结果是美好的。 如果以下内容有不足的地方,请指出,我会第一时间更正。谢谢大家。 二、部署流程介绍 1、先上一下手绘导图,大致的流程图如下:(不喜勿喷呀) 大致的部署流程是这样的:开发人员把做好的asp.net core项目代码通过git推送到gitlab,然后Jenkins通过 gitlab webhook (前提是配置好),自动从拉取gitlab上面拉取代码下来,然后进行build,编译、生成镜像、然后把镜像推送到Harbor仓库;然后在部署的时候通过k8s拉取Harbor上面的代码进行创建容器和服务,最终发布完成,然后可以用外网访问。(ps:看着我讲这么简单

Ruby Gems with Gitlab no such file to load — rb-inotify

拜拜、爱过 提交于 2019-12-22 03:23:09
问题 I am using Gitlab and I am trying to follow these instructions to upgrade my gitolite v2 to v3: "If this issue occurs in 2.9.x you should reinstall gitolite. 1) backup all repositories. Just copy /home/git/repositories/* elsewhere. 2) Install new gitolite. See https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md 3) copy repositories back. 4) sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_keys && sudo -u gitlab -H bundle exec rake gitlab:gitolite:update_repos That's

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

佐手、 提交于 2019-12-22 03:17:08
问题 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