让GitHub和Gerrit玩得很好

Jos*_*ith 9 git github repository gerrit

我在GitHub托管了一个私人仓库.我也想使用Gerrit,尤其是Hudson Gerrit Trigger插件.AFAICT,没有任何简单的解决方案可以将它们一起使用.

我对以下任何想要的任何帮助表示感谢.


我想要的是

  • 克隆GitHub repo并添加到Gerrit的项目中:
    1. 手动,或
    2. init
  • 使用Gerrit与GitHub合并更改

我试过的

克隆/添加...

手动:我正常克隆回购,然后H2像这样添加:

INSERT INTO projects
(use_contributor_agreements,submit_type,name)
VALUES
('N','M','new/Repo');
Run Code Online (Sandbox Code Playgroud)

期间init:

*** Git Repositories
***

Location of Git repositories   [git]: git@github.com:YourName/Repo.git
Run Code Online (Sandbox Code Playgroud)

我不认为这是正确的.


怎么了

克隆/添加...

手动:

我收到此错误: repository not found: Cannot open repository Repo

期间init:

创建目录at ~/gerrit2/git@github.com:YourName/Repo.git和子目录Repo.git,该目录本身包含一个空的Gitrepo.不完全是我想要的.

Dav*_*ard 3

我自己不尝试,但你可以使用 gerrit repo 和github镜像