
Git/Gerrit
文章平均质量分 63
scm002
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
搭建gerrit服务器(apache&nginx反向代理方式)
这段时间,想搭建一个gerrit,用于代码托管,gerrit的搭建,网上有很多种教程,但是自己按照别人的教程逐步操作,一直出现诸多问题。最头痛的就是:Configuration ErrorCheck the HTTP server's authentication settings. 后来经过他人指点,才知道自己的原因。由于对Apache的反向代理的机制,没有清楚,导...原创 2016-04-24 23:55:49 · 1178 阅读 · 0 评论 -
Gerrit mysql error: Communications link failure
fatal: DbInjector failed fatal: Unable to determine SqlDialect fatal: caused by com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure fatal: fatal: Th...原创 2017-05-24 15:31:33 · 448 阅读 · 0 评论 -
Playing With Gerrit Jira Plugin
Playing With Gerrit Jira PluginAug 5th, 2014Build and Setup1. Clone the Gerrit source:1$ git clone https://gerrit.googlesource.com/gerrit2. Checkout to version 2.8 (2....原创 2017-06-09 16:10:48 · 561 阅读 · 0 评论 -
git diff提示filemode发生改变(old mode 100644、new mode 10075)
今天在提交代码之前 git status了一下,发现一片红啊~每个git库下的所有文件都飘红了,抽什么疯啊? 我不可能修改那么多~~git diff 了一下,发现都是diff --git a/Android.mk b/Android.mkold mode 100644new mode 100755原来是filemode的变化,文件chmod后其文件某些位是改变了...原创 2017-06-10 09:32:09 · 493 阅读 · 0 评论 -
How to modify existing, unpushed or pushed commits?
https://stackoverflow.com/questions/179123/how-to-modify-existing-unpushed-commits Amending the most recent commit messagegit commit --amendwill open your editor, allowing you to change the c...原创 2017-06-20 16:43:19 · 367 阅读 · 0 评论 -
Why does Gerrit not include the change-id into merge commits?
The underlying problem in Git is that commit-msg hooks are not called for merge commits without conflicts.However, the prepare-commit-msg is called for (any) merge commits. So what I cu...原创 2017-01-20 10:23:17 · 150 阅读 · 0 评论 -
GitPython 库
GitPython is a python library used to interact with git repositories. It provides abstractions of git objects for easy access of repository data, and additionally allows you to access the git reposit...原创 2017-02-15 18:25:59 · 636 阅读 · 0 评论 -
Python的高级Git库 Gittle安装使用方法
本文为大家讲解的是Python的高级Git库 Gittle安装使用方法,Gittle是一个高级纯python git 库。构建在dulwich之上,提供了大部分的低层机制。Install itpip install gittleExamples :Clone a repositoryfrom gittle import Gittle repo_path = '/tm...原创 2017-02-15 18:29:18 · 729 阅读 · 0 评论 -
One or more refs/for/ names blocks change upload
One or more refs/for/ names blocks change uploadversion v2.12.7Table of ContentsWith this error message Gerrit rejects to push a commit for code review if the remote git repository ...原创 2017-02-16 12:23:21 · 409 阅读 · 0 评论 -
Gerrit reviewer plugin
https://gerrit.googlesource.com/plugins/reviewers/+doc/master/src/main/resources/Documentation/config.md ConfigurationGlobal configuration of the @PLUGIN@ plugin is done in the reviewers.config...原创 2017-02-20 11:20:57 · 968 阅读 · 0 评论 -
gitlab 项目迁移
gitlab项目迁移: 一: 场景 目前有2个gitlab server,需要将gitlab-A server项目迁移到另外一个gitlab-B server.二: 步骤 1. 在gitLab-B上新建组和项目,组和项目名称和gitlab-A的组合项目名称一一对应。 2. 将gitlab-A项目clone到本地 git clone htt...原创 2017-03-04 11:45:52 · 943 阅读 · 0 评论 -
Make Gerrit look for new repositories
Command line alternativeCopy bare Git repository into ~/gerrit_testsite/git/myproject.gitMake Gerrit look for new repositories:$ ssh -p 29418 alexadmin@localhost gerrit flush-caches --cache pro...原创 2017-03-08 19:01:34 · 167 阅读 · 0 评论 -
Gerrit命令
查看可见的群组 ssh -p 29418 admin@localhost gerrit ls-groups#创建新的项目,--owner需要的群组必须要在Gerrit已经定义好的 ssh -p 29418 admin@localhost gerrit create-project "test/helloworld" --description "'Tools used by build...原创 2017-03-10 10:33:20 · 2031 阅读 · 0 评论 -
How to use gerrit gsql -c option
You have to ensure the quotes end up in the gsql shell.ssh -p29418 <host> gerrit gsql -c '"select * from accounts;"'(first single quote ' , then double quote " ) gerrit gsql -c "\"select *...原创 2017-01-06 19:35:34 · 779 阅读 · 0 评论 -
How to remove group and project in Gerrit ?
Group1. access gerrit sql database cmd: ssh -p 29418 150.236.40.165 gerrit gsql2. gerrit> delete from ACCOUNT_GROUP_NAMES where name='group name';3. gerrit> delete from ACCOUNT_GROUPS where ...原创 2016-12-26 15:35:42 · 768 阅读 · 0 评论 -
Pygerrit - Client library for interacting with Gerrit Code Review
https://github.com/sonyxperiadev/pygerrit Pygerrit provides a simple interface for clients to interact with Gerrit Code Review via ssh or the REST API.This repository is no longer actively mai...原创 2016-12-20 14:11:07 · 426 阅读 · 0 评论 -
Git钩子:自定义你的工作流
BY 童仲毅(geeeeeeeeek@github)这是一篇在原文(BY atlassian)基础上演绎的译文。除非另行注明,页面上所有内容采用知识共享-署名(CC BY 2.5 AU)协议共享。Git钩子是在Git仓库中特定事件发生时自动运行的脚本。它可以让你自定义Git内部的行为,在开发周期中的关键点触发自定义的行为。Git钩子最常见的使用场景包括推行提交规范,根据仓...原创 2016-05-10 13:41:41 · 1119 阅读 · 0 评论 -
gitlab/gerrit/jenkins 集成
参考:http://blog.csdn.net/stwstw0123/article/details/47615535 当replication gerrit的提交到gitlab时出现下面错误:[2016-08-01 16:20:44,439] [41c60ca4] Cannot replicate to ssh://git@172.16.2.94:10022/test-gro...原创 2016-08-01 17:11:54 · 374 阅读 · 0 评论 -
Gerrit Code Review - Prolog Submit Rules Cookbook
Gerrit Code Review - Prolog Submit Rules Cookbookversion 2.12.4-3928-g0763c19Table of ContentsSubmit RuleSubmit TypeProlog LanguageProlog in GerritInteractive Prolog Cafe ShellSWI-...原创 2016-09-03 00:08:01 · 1031 阅读 · 0 评论 -
Git常用命令总结
http://www.cnblogs.com/wshiqtb/p/5278560.htmlGit常用命令总结 git init 在本地新建一个repo,进入一个项目目录,执行git init,会初始化一个repo,并在当前文件夹下创建一个.git文件夹. git clone 获取一个url对应的远程Git repo, 创建一个local cop...原创 2016-09-05 11:19:23 · 97 阅读 · 0 评论 -
git config 配置
http://www.cnblogs.com/wshiqtb/p/5160608.html 1. git config简介 我们知道config是配置的意思,那么git config命令就是对git进行一些配置。而配置一般都是写在配置文件里面,那么git的配置文件在哪里呢?互动一下,先问下大家。你们所知的git配置文件是放在哪里的?git有几个配置文件呢?是的,聪明...原创 2016-09-05 11:19:51 · 121 阅读 · 0 评论 -
Useful git commands
GIT_USER=$(git config user.email | cut -d@ -f1)ssh -p 29418 review.example.com -l $GIT_USER gerrit --helpssh -p 29418 review.example.comt -l $GIT_USER gerrit review --helpssh -p 29418 review.ex...原创 2015-10-15 17:26:58 · 162 阅读 · 0 评论 -
Repo和Git 版本管理常用命令
转载一则:Git命令快速参考Git Command Quick Reference本附录为Git常见命令快速参考。每节介绍一种操作类型。这里会列出很多命令,而相应的解释却不多。对于还不熟悉Git的读者,可回头翻阅第1章“Git的版本控制之道”(第3页)。A.1安装和初始化Setup and Initialization在使用Git之前,须要先进行配置。在使用一个新的版本库之前,须要先初始化...原创 2016-09-23 19:26:17 · 576 阅读 · 0 评论 -
Repo/Git 使用手冊, android開發圖說如何使用指令
安裝repo參考:http://source.android.com/source/downloading.html1. To install Repo:Make sure you have a bin/ directory in your home directory and that it is included in your path:$ mkdir ~/bin$ PATH=...原创 2016-10-09 11:13:22 · 198 阅读 · 0 评论 -
repo upload Uncomment the branches to upload:
$ repo upload如果有多个项目同时进行了改动,为了避免出错,会弹出编辑器显示有改动需要提交的项目列表。# Uncomment the branches to upload:## project test/test1/:# branch jiangxin ( 1 commit, Mon Oct 25 18:04:51 2010 +0800):# ...原创 2016-10-09 11:34:03 · 3378 阅读 · 0 评论 -
Ubuntu Git 版本升级
安装命令:sudo add-apt-repository ppa:git-core/ppa sudo apt-get update sudo apt-get install git卸载 Git 2.2 命令:sudo apt-get remove git原创 2016-11-05 14:52:03 · 286 阅读 · 0 评论 -
gerrit集成gitweb所需的权限设置
在以前发的博文里提到如何在gerrit里集成gitweb。集成之后发现只有我的root用户(gerrit里注册的第一个用户)才能够点gitweb链接正常打开gitweb页面。其他的普通用户点gitweb链接显示404错误。经过网上调查发现2.5开始使用gitweb需要有【refs/*】下所有的read权限。参考链接1 里有下面一段话『This is due to a change on the l...原创 2016-11-14 11:46:39 · 967 阅读 · 0 评论 -
git 取得两个 tag 之间的 commit
参考:http://stackoverflow.com/questions/5863426/get-commit-list-between-tags-in-git git log --pretty=oneline tagA...tagBIf you just wanted commits reachable from tagB but not tagA:git log -...原创 2016-11-26 13:10:12 · 1342 阅读 · 0 评论 -
Gerrit replication.config
replication.config[remote "slave "]# url = ssh://user@172.16.2.35:29418/${name}.git url = ssh://gerrit2@172.16.2.35/home/gerrit2/review_site/git/${name}.git push = +refs/heads/*:refs/he...原创 2017-03-16 19:15:24 · 1521 阅读 · 0 评论