gitlab

解决Github在国内下载慢的问题

ε祈祈猫儿з 提交于 2020-03-03 02:09:35
如果下载源码较慢: 打开码云https://gitee.com/,以从 Github/Gitlab中引入的方式 新建一个仓库,然后再从码云上下载。 如果下载release中的资源较慢 推荐github的一个国内镜像站 http://github-mirror.bugkiller.org/ ,在里面搜索相应的project,然后找到release资源的链接,复制粘贴到迅雷下载。 来源: CSDN 作者: John4July 链接: https://blog.csdn.net/greenlight_74110/article/details/104614715

将本地maven项目上传至github

笑着哭i 提交于 2020-03-02 22:03:04
1. gitlab上面建立空项目 demo1 2. idea clone下来项目 demo1 3. idea新建maven项目 demo2 4. 将maven项目demo2中的源码copy到 demo1文件夹中 5. idea git commit 将源码提交,然后push 此时gitlab上面则有maven项目源码 来源: CSDN 作者: 王克兵 链接: https://blog.csdn.net/whxwkb/article/details/104616328

gitlab新建项目过程和添加用户

邮差的信 提交于 2020-03-02 06:28:48
github和gitlab的关系(原文:http://blog.csdn.net/carryoner/article/details/51684431)。 两者都是基于web的 Git repositories(仓库),拥有流水线型的web开发流程,它们为开发团队存储、分享、发布、测试和合作web开发项目提供了中心化的、云存储的场所。Git 版本控制 ——对于多人共同开发一个project来说非常重要——它提供了分享开源项目的平台。 GitLab拥有更多的特性,它可以让开发团队拥有更多的安全性和灵活性的选择。 GitLab的优势 GitLab拥有GitHub拥有的一切,但他拥有更多——让团队对它们的repositories拥有更多的控制,它的特色: 非常便捷的用户界面,在同一界面上获取到:projects,最近的projects,用户,最近的用户,群组和状态; 允许设置仓库权限是公用的还是私有的;(gitlab可以设置私有,只有本组成员可以看到,github的代码一般所有人都可以看到) “Snippet support”让用户分享一个project的部分代码,而不是整个project。 受保护的分支是一种提升代码安全性的新方法,它们允许用户设置project的获取权限,所以一个团队中只有特定的人可以push,force push或者删除一个分支的代码。 Authentication

部署本地gitlab

拥有回忆 提交于 2020-03-02 03:58:39
一、gitlab简介 GitLab是利用 Ruby on Rails 一个开源的版本管理系统,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目。它拥有与Github类似的功能,能够浏览源代码,管理缺陷和注释。可以管理团队对仓库的访问,它非常易于浏览提交过的版本并提供一个文件历史库。团队成员可以利用内置的简单聊天程序(Wall)进行交流。它还提供一个代码片段收集功能可以轻松实现代码复用,便于日后有需要的时候进行查找。 依赖组件:ruby 1.9.3+,nginx、MySQL,git,redis, Sidekiq。 gitlab组件详解: nginx:静态web服务器 gitlab-shell:用于处理git命令和修改authorized keys列表 git-workhorse:轻量级反向代理服务器 logrotate:日志文件管理工具 postgresql:数据库 redis:缓存数据库 sidekiq:用于在后台执行队列任务(异步执行) unicorn:gitlab rails应用是托管在这个服务器上面的 最低配置内存2G 相关目录: /var/opt/gitlab/git-data/repositories/rot:库默认存储目录 /opt/gitlab:应用代码和相应的依赖程序 /var/opt/gitlab:gitlab-ctl

ubuntu 13.04 安装 gitlab 5.3 版

蹲街弑〆低调 提交于 2020-02-29 09:25:21
英文原版 Debian 下 安装教程: https://github.com/gitlabhq/gitlabhq/blob/5-3-stable/doc/install/installation.md ubuntu 与 Debian 还是有点区别的,因为 ubuntu 默认安装了 sudo/python,并且 gedit 编辑器用着比 vim 容易上手...所以就没有安装 sudo/python 和 vim 的的代码了... 现在开始... 一. 软件源安装所需的软件包 sudo apt-get update sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl git-core openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev 二. 编译安装 ruby 1.9.3 mkdir /tmp/ruby && cd /tmp/ruby curl --progress http://ftp.ruby-lang.org/pub/ruby/1

I can push but not pull git

孤街醉人 提交于 2020-02-29 04:45:30
问题 I just created a new git repo on Gitlab. I init and pushed an already populated directory in the following manner: git init git remote add origin git@gitlab.com:username/reponame.git git add . git commit -m 'first commit' git push -u origin master All worked as expected. However, when I try to pull back from the repo i get Permission denied (publickey). fatal: The remote end hung up unexpectedly This error appears for: git pull git fetch It does not appear for: git push Push is working fine,

I can push but not pull git

橙三吉。 提交于 2020-02-29 04:39:08
问题 I just created a new git repo on Gitlab. I init and pushed an already populated directory in the following manner: git init git remote add origin git@gitlab.com:username/reponame.git git add . git commit -m 'first commit' git push -u origin master All worked as expected. However, when I try to pull back from the repo i get Permission denied (publickey). fatal: The remote end hung up unexpectedly This error appears for: git pull git fetch It does not appear for: git push Push is working fine,

I can push but not pull git

天大地大妈咪最大 提交于 2020-02-29 04:38:26
问题 I just created a new git repo on Gitlab. I init and pushed an already populated directory in the following manner: git init git remote add origin git@gitlab.com:username/reponame.git git add . git commit -m 'first commit' git push -u origin master All worked as expected. However, when I try to pull back from the repo i get Permission denied (publickey). fatal: The remote end hung up unexpectedly This error appears for: git pull git fetch It does not appear for: git push Push is working fine,

构建触发器,实现当gitlab有push动作时候,jenkins自动拉代码

梦想与她 提交于 2020-02-28 23:27:15
构建触发器,实现当gitlab有push动作时候,jenkins自动拉代码. 拉取gitlab代码库: jenkins安装git插件 配置gitlab服务器和jenkins服务器身份互信 jenkins服务器生成一对rsa key. 复制公钥到gitlab web dashboard添加 在jenkins Credentials 里添加private key. 接下去创建project 拉取到了本地: /var/lib/jenkins/workspace 安装两个插件 Gitlab Hook Plugin build authorization token root plugin #这个插件使用参照https://wiki.jenkins-ci.org/display/JENKINS/Build+Token+Root+Plugin 总之就是生成了一个url: http://192.168.14.128:8080/buildByToken/build?job=demo-sonar&token=433230c791c1c0e3 自己产生一个复杂点的token: openssl rand -hex 8 得到 433230c791c1c0e3, 写到jenkins,将组合成的url写到gitlab 新建jobs: 好文要顶 关注我 收藏该文 来源: oschina 链接: https:/

Jenkins介绍和安装及配合GitLab代码自动部署

跟風遠走 提交于 2020-02-28 14:13:34
Jenkins介绍和安装及配合GitLab代码自动部署 Jenkins是什么? 基于JAVA的开源的自动化系统平台 加速自动化CI,CD任务及流水线,所有类型的任务:构建,测试,部署等 丰富的插件生态系统支持功能扩展,1400+插件和SCM,测试,通知,报告,Artfact,触发,外部集成等 基于Web的管理和使用界面 源于Hudson 官网文档:https://jenkins.io/doc/ Jenkins系统架构图 用docker环境部署Jenkins 一,安装docker-ce版本 1.1 删除之前版本的Docker sudo yum remove docker docker-common docker-selinux docker-engine 1.2 安装一些依赖 sudo yum install -y yum -utils device-mapper-persistent-data lvm2 1.3 下载repo文件 wget -O /etc/ yum .repos.d/docker-ce.repo https: // download.docker.com/linux/centos/docker-ce.repo 1.4 把软件仓管地址替换为 TUNA: sudo sed -i ' s+download.docker.com+mirrors.tuna.tsinghua