Questions tagged [gerrit]

Gerrit is a web based code review and project management for Git based projects.

Gerrit is a web based code review system, facilitating online code reviews for projects using the Git version control system.

Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.

Gerrit is not only a review interface but it's able to manage git repository into is core. To keep an external git repository, it is recommended to use replication plugin. Replication plugin documentation.

Gerrit2 is a complete rewrite of the Gerrit fork, completely changing the implementation from Python on Google App Engine, to Java on a J2EE servlet container and a SQL database.

2033 questions
35
votes
3 answers

git cherry pick - range of commits and exclude some in between

I normally use the following git command to cherryppick a range of gerrits..no how do I exclude a couple gerrits in between.. can the below command be modified or is there one where we can pick a range of gerrits and exclude the ones we want.. git…
carte blanche
  • 10,796
  • 14
  • 46
  • 65
34
votes
5 answers

Commiter email address does not match in IntelliJ even changing it to correct one

When I try to push my commits from git repository to gerrit remote repository from Linux environment in IntelliJ idea I get the following error: remote: ERROR: committer email address ***** [K remote: ERROR: does not match your user…
Tadas Davidsonas
  • 1,859
  • 4
  • 16
  • 19
33
votes
6 answers

Delete a project in Gerrit

I can create a project in Gerrit through: ssh –p 29418 [ip-address] gerrit create-project --name [project-name] But, how can I delete any project? I haven't see related commands or buttons on web page.
gemfield
  • 3,228
  • 7
  • 27
  • 28
29
votes
2 answers

Edit project.config in a Gerrit project

I want to add a "verified" label to my Gerrit project to allow Jenkins to verify that the code builds and passes its tests and so on. I know I need to add a section to project.config as below: [label "Verified"] function = MaxWithBlock …
Inductiveload
  • 6,094
  • 4
  • 29
  • 55
29
votes
4 answers

Import repository from git to gerrit

I have two questions about Gerrit: How do I convert or import an already existing Git repository into Gerrit's format? There were a lot of commits without Gerrit control, I want to simply push those commits into a Gerrit project. I see two ways to…
DEgITx
  • 960
  • 1
  • 13
  • 24
28
votes
1 answer

How to push Drafts to Gerrit?

I am unable to push the Drafts to gerrit. When I try to push drafts to gerrit it is throwing the following error. [3:37pm] [myrepo] -> git push origin HEAD:refs/drafts/remote Counting objects: 167, done. Delta compression using up to 8…
Bobby
  • 281
  • 1
  • 3
  • 5
27
votes
2 answers

Is there anything for subversion as gerrit for git?

Gerrit is useful but it's only for git. I want to setup something like it, but for subversion. Is there any software doing this job?
Alvin Cao
  • 557
  • 2
  • 5
  • 11
25
votes
8 answers

git alias for HEAD:refs/for/master

I am configuring Gerrit and I would like to avoid writing: git push gerrit HEAD:refs/for/master I would like to write: git push review I am sure it's possible modifying .git/config but I can't make it work.
Macarse
  • 91,829
  • 44
  • 175
  • 230
20
votes
3 answers

Cannot merge in Gerrit

Whenever I sent a review to Gerrit and if the review is pending for some time, I am getting cannot merge message in Gerrit. I understood its coming because somebody else would have changed same file/files and delivered before me. I am trying below…
Bhargav Kumar R
  • 2,190
  • 3
  • 22
  • 38
20
votes
1 answer

Why does Gerrit not include the change-id into merge commits?

so the git hook only puts change Id into commits. Although merge commits can be pushed to review branch even Gerrit is configured to require Change-Id in the commit messages. And when a merge commit has been pushed all the subsequent commit will…
laplasz
  • 3,359
  • 1
  • 29
  • 40
20
votes
2 answers

how to reset to a specific commit?

I have the following recent commits when I do "git log --oneline"...I want to reset to "8ec2027",I tried some rebase commands that didnot work..what is the exact command to do this? 2503013 code: cs release 1.2.3.47 269ed14 code: Fixed below issues…
user1934146
  • 2,905
  • 10
  • 25
  • 25
19
votes
3 answers

subsystem request failed on channel 0 scp: Connection closed - Macbook

can you please help me when I run this in terminal : scp -p -P 29418 michealvern.genzola@192.168.0.122:hooks/commit-msg "jyei-erp/.git/hooks/" it says : subsystem request failed on channel 0 scp: Connection closed someone help me
Michael Vern
  • 201
  • 1
  • 1
  • 3
19
votes
3 answers

Git Bash - ssh connection issue

Environment: OS: Windows-10 Git Bash Version: 2.33.1 OpenSSH_8.8p1, OpenSSL 1.1.1l 24 Aug 2021 $ which ssh /usr/bin/ssh SSH connection to Gerrit Error:- $ ssh -p 29418 user@gerrit.example.com Unable to negotiate with gerrit.example.com port…
user4948798
  • 1,924
  • 4
  • 43
  • 89
19
votes
3 answers

How do you apply patch file downloaded from gerrit?

In Gerrit, under the download section for a change, there is a section that allows you to download the Patch-File: Using git apply results in: $ git apply 441eb56b.diff.base64 fatal: unrecognized input What command do I use to apply this patch?
Fantastic Mr Fox
  • 32,495
  • 27
  • 95
  • 175
19
votes
1 answer

How do I set the topic from the command line when I push a new commit to gerrit?

When uploading a git commit for code review on Gerrit (2.8), I would like to be able to set the topic field (e.g. g-tune-pme-reform here https://gerrit.gromacs.org/#/c/3453/3). How can this be done from the command line? Can it be done in the…
mabraham
  • 2,806
  • 3
  • 28
  • 25