让GitHub和Gerrit好好玩 [英] Getting GitHub and Gerrit to play nicely

查看:824
本文介绍了让GitHub和Gerrit好好玩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 GitHub 上主持了一个私人回购协议。我也想使用 Gerrit ,特别是 Hudson Gerrit Trigger插件。 AFAICT,没有任何简单的解决方案一起使用它们。



感谢以下任何帮助。






我想要的东西




  • 克隆GitHub repo并添加到Gerrit's项目:


    1. 手动,或 init


    2. 使用Gerrit合并对GitHub的更改






h1>

克隆/添加...



手动:我正常克隆回购,然后加入 H2 如下:

  INSERT INTO projects 
(use_contributor_agreements,submit_type,name)
VALUES
('N','M' ,新/回购);

init

  *** Git存储库
***

Git存储库的位置[git]:git@github.com:YourName / Repo.git

我不认为这是正确。






发生了什么



克隆/添加.. 。



手动

我得到这个错误: repository not found:无法打开仓库回购



init



〜//ritrit2/git@github.com创建目录:YourName / Repo.git 和子目录 Repo.git ,它本身包含一个空的 Git 回购。不是我想要的。 不要尝试自己,但可以使用gerrit repo和 镜像 到github


I host a private repo on GitHub. I also want to use Gerrit, particularly for the Hudson Gerrit Trigger plugin. AFAICT, there isn't any simple solution for using them together.

I'd appreciate any help on any of the following wants.


What I want

  • Clone GitHub repo and add to Gerrit's projects either:

    1. manually, or
    2. during init

  • Merge changes with GitHub using Gerrit

What I've tried

Cloning/Adding...

Manually: I clone the repo as normal, then add into H2 like so:

INSERT INTO projects
(use_contributor_agreements,submit_type,name)
VALUES
('N','M','new/Repo');

During init:

*** Git Repositories
***

Location of Git repositories   [git]: git@github.com:YourName/Repo.git

I don't think that's correct.


What happens

Cloning/Adding...

Manually:

I get this error: repository not found: Cannot open repository Repo

During init:

Creates the directory at ~/gerrit2/git@github.com:YourName/Repo.git and sub-directory Repo.git, which itself contains an empty Git repo. Not exactly what I wanted.

解决方案

Not try myself, but you could use gerrit repo and mirror to github

这篇关于让GitHub和Gerrit好好玩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆