
git
文章平均质量分 57
董武明
这个作者很懒,什么都没留下…
展开
-
Gerrit push代码提示! [remote rejected] HEAD -> dev (more than 10000 commits, and skip-validation not
【代码】Gerrit push代码提示!原创 2024-01-30 11:28:08 · 1000 阅读 · 1 评论 -
Gerrit no Verified 在最新的2.7版本之后添加Verified
Gerrit no Verified 在最新的2.7版本之后添加Verified具体方法: cd review_site/git/ //进入gerrit代码库目录 git clone All-Projects.git ddddd cd ddddd vi project.config 添加一段verified Lable 在最后面: [lab原创 2015-12-02 16:35:07 · 4597 阅读 · 0 评论 -
gitlab 添加https://gitlab.com/ci gitlab-ci-multi-runner
Configuration of your builds with .gitlab-ci.ymlFrom version 7.12, GitLab CI uses a YAML file (.gitlab-ci.yml) for the project configuration. It is placed in the root of your repository and cont原创 2016-04-07 09:51:29 · 4012 阅读 · 0 评论 -
git日常使用操作 (快速入门)
title: git日常使用操作 (快速入门) date: 2015-11-12 10:41:34Git简介(一)——Git的历史和特点Git是一款开源的分布式版本控制系统(Distributed Version Control System) ,诞生于2002年,由Linux之父Linus Torvalds带领Linux开源社区开发完成。初衷是用其管理Linu原创 2015-11-12 11:18:32 · 2148 阅读 · 0 评论 -
git log --format="%an"
表格列出一些 format 支援的選項:選項選項的說明%H該更新的SHA1雜湊值%h該更新的簡短SHA1雜湊值%T存放該更新的根目錄的Tree物件的SHA1雜湊值%t存放該更新的根目錄的Tree物件的簡短SHA1雜湊值%P該更新的父更新的SHA1雜湊值%p該更新的父更新的簡短转载 2016-04-15 17:25:54 · 3733 阅读 · 0 评论 -
Gitlab 修改root用户密码
Gitlab 修改root用户密码Log into your server with root privileges. Then start a Ruby on Rails console.Start the console with this command:gitlab-rails console productionWait until the console has loaded.Ther原创 2016-04-21 18:13:23 · 4666 阅读 · 1 评论 -
Git svn clone的方式使用SVN
习惯用Git后的程序员一定对SVN不屑一顾。不过目前的开发环境必须使用SVN,用起来不开心。还好Git提供了对SVN的支持,让我们可以像使用Git一样使用SVN。当然一些Git的高级功能还是无法支持的。有兴趣详细了解的同学可以参考git-svn文档。简单来说只需要几步就可以使用了。检出SVN库git svn clone http://PATHTOSVN有了这一步就可以在命令行像操作Git一样操作SV原创 2016-06-27 14:32:57 · 18100 阅读 · 0 评论 -
repo init error: no signature found
原因也很简单,repo的版本太低了;执行以下的command就可以解决了。 下载最新的repo到/sbin目录下sudo curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /sbin/reposudo chmod a+x /sbin/repo原创 2017-02-09 15:02:55 · 2280 阅读 · 0 评论 -
gitlab 使用API批量创建群组和代码库及部分gitlab api封装使用
使用gitlab的API批量创建组写入所有群组到文件lllll中:vi lllll使用gitlab的API批量创建群组:for i in `cat lllll`;do echo $i": ";curl --request POST --header "PRIVATE-TOKEN: Twaxxxxxxxxxxxx9R" --data "name=${i}&path=${i}" http://192原创 2017-03-21 18:59:36 · 6375 阅读 · 4 评论 -
gitlab 登录数据库psql -d gitlabhq_production 报错
gitlab 登录数据库psql -d gitlabhq_production 报错:$ psql -d gitlabhq_productionpsql: could not connect to server: Connection refusedIs the server running locally and acceptingconnections on Unix domain so原创 2017-03-22 14:43:58 · 3706 阅读 · 0 评论 -
Gitlab 系统Log文件对应操作关系List
Gitlab 系统Log文件位置: /var/log/gitlab/页面操作Log:/var/log/gitlab/gitlab-rails/production.log Started GET "*?page=2" for 192.168.xx.xx at 2017-04-24 19:00:34 +0800 Processing原创 2017-04-24 19:15:59 · 9411 阅读 · 1 评论 -
Gerrit 2.7版本后将默认安装的黑白背景颜色改成原来的Theme配套颜色
Gerrit 2.7版本后将默认安装的黑白背景颜色改成原来的Theme配套颜色具体方法: cd review_site/etc/ //进入gerrit系统配置目录 vi gerrit.config 添加Gerrit Theme主题颜色配置:[theme] backgroundColor = FCFEEF tex原创 2015-12-02 16:47:27 · 1645 阅读 · 0 评论 -
Git图形化界面客户端大汇总
目录[-]一、TortoiseGit - The coolest Interface to Git Version Control二、SourceTree - A free Git & Mercurial client for Windows or Mac三、GitUp - Work quickly, safely, and without headaches四、SmartGit - Ge转载 2015-12-10 16:14:25 · 1652 阅读 · 0 评论 -
repo init 报:ValueError: invalid literal for int() with base 10: '8 (Apple Git-58)'
repo init 报:repo initTraceback (most recent call last): File "/sbin/repo", line 739, in main(sys.argv[1:]) File "/sbin/repo", line 706, in main _Init(args) File "/sbin/repo", l原创 2015-11-24 10:19:24 · 1848 阅读 · 2 评论 -
生成ssh key
生成ssh key请在终端执行ssh-keygen命令,一路回车$ ssh-keygen Generating public/private rsa key pair.Enter file in which to save the key (/home/work/.ssh/id_rsa): Created directory '/home/work/.ssh'.Enter原创 2013-07-03 20:06:49 · 892 阅读 · 0 评论 -
Gerrit Review代码
Gerrit Review代码 Gerrit上代码提交的三种状态代码提交至Gerrit之后,有三种状态,分别是:Open、Merged、Abandoned。Open 状态的代码需要经过Review,Verify,Submit操作后才会真正入库,即成为Merged状态Merged 状态的代码已经入库,不能再Abandoned,只能Revert.Open原创 2013-07-04 18:05:50 · 10266 阅读 · 2 评论 -
git 常用命令解析
1. git init 建立个git库及完成git初始化,生成一个名为.git的文件夹,所有git的数据和资源都放到这个文件内。2. git clonegit clone urleg:git clone git://github/your_github_user/your_git_repository.git3. git status查看当前git库的文件状态,git有三种原创 2013-04-28 16:19:00 · 1700 阅读 · 0 评论 -
LINUX手动安装git及repo android代码下载方法
LINUX手动安装git# wget http://kernel.org/pub/software/scm/git/git-1.8.3.tar.gz# tar -zxvf git-1.8.3.tar.gz# cd git-1.8.3# ./configure --prefix=/usr/local/git # make # make installLINUX命令自动原创 2013-07-31 16:36:54 · 2808 阅读 · 0 评论 -
切换到Git的8个理由
英文原文:git-tower 提到版本控制,最近大家都在谈 Git。当然,四处议论纷纷还不足以证明切换到 Git 上有多么正确。这里有一些能证明 Git 非常出色的有力事实。 1. 节省时间 想象一下,每次动鼠标前你都要等待 5 分钟。这非常讨厌是不是?有了版本控制也是一样——我们每个命令消耗几秒,但是工作一天也累积起来了。但是 Git 快如闪电。把你的时间用在其他更重要的翻译 2013-10-12 17:15:28 · 752 阅读 · 0 评论 -
搭建无限制权限的简单git服务器使用git-daemon脚本
如果想要用ubantu架设无限制权限(即不适用gitosis)的简单git服务器,实现git库下载clone,push等简单的基本功能,可以直接使用git-daemon脚本本地安装完sudo apt-get install git git-core之后没有安装git-daemon-run或者git-daemon-sysvinit时,可以执行如下操作:sudo vi /etc/init.原创 2013-10-31 17:27:46 · 2630 阅读 · 0 评论 -
Gerrit+apache+H2数据库简单安装配置及建库流程
Ubantu Gerrit 安装安装相关软件(ubantu)Gerrit 是一个基于 Web 的代码评审和项目管理的工具,面向基于 Git 版本控制系统的项目。因此需要Apache、Mysql、GIT等相关软件的支持新装的系统请先更新自己的系统软件包$sudo apt-get dist-upgrade$sudo apt-get install mysql-client-5.5 mysql-server-5.5 git-core apache2.2-bin apache2.2-common a原创 2013-07-02 20:23:31 · 14730 阅读 · 2 评论 -
gitlab Sign in 报错:You have to confirm your account before continuing.
之前登陆过gitlab,但是当自己再次登陆时,输入的用户密码都是对的,但是就是登陆不上去,报错:You have to confirm your account before continuing.而不是密码用户错误 "Invalid credentials"其原因是:gitlab 给你发了封确认绑定邮箱的邮件,你没有确认,解决方法:登陆你的邮件原创 2015-11-03 16:44:28 · 17536 阅读 · 0 评论 -
error: RPC failed; result=22, HTTP code = 413 git push时
当执行git push 时,报:error: RPC failed; result=22, HTTP code = 413fatal: The remote end hung up unexpectedlyfatal: The remote end hung up unexpectedly是因为HTTP上传数据是有限制,最大不超过500M;解决这个问题最好的办法是 使用s原创 2015-10-22 15:51:17 · 3605 阅读 · 0 评论 -
error: RPC failed; result=18, HTTP code = 200 gitlab 百兆以上库下载报错
当执行git clone http://xxxxxxxxx 时,报:error: RPC failed; result=18, HTTP code = 200fatal: The remote end hung up unexpectedlyfatal: early EOFfatal: unpack-objects failed是因为gitlab HTTP 下载数据是有限制原创 2015-10-22 17:44:02 · 6146 阅读 · 1 评论 -
gerrit 配置使用
Gerrit的配置使用 目 录 1. 快速配置 ................................................................. 3 1.1 创建APACHE帐号名 ......................................................... 3 1.2 创建SSH密钥 ..............转载 2013-04-28 15:05:33 · 6374 阅读 · 1 评论