Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to upload a git repo to gerrit?

I installed the gerrit service on a ubuntu server,and my PC as client. I created a git repo on my PC(with msysgit),and the question is :how can I upload the git repo to the Ubuntu server?Should I do some work on Ubuntu server first(i just installed gerrit and git service )?

like image 248
gemfield Avatar asked Dec 02 '11 09:12

gemfield


1 Answers

First, you need to create the project on the Gerrit server using gerrit create-project.

Next, edit the project permissions if necessary to add the following for your user (Administrators group, probably):

  • Create reference
  • Forge committer identity
  • Forge author identity

This allows you to upload an existing history, perhaps committed by different people, bypassing the need to review every commit you select.

Finally, push your code:

git remote add gerrit gerritserver:project
git push gerrit master:refs/heads/master
like image 120
Greg Hewgill Avatar answered Nov 13 '22 06:11

Greg Hewgill