lurkerbelow
lurkerbelow

Reputation: 719

Porting GIT Repositories (with a lot of branches) into Gerrit

we want to move our current GIT repositories (about 9-10) with about 20-50 branches each to gerrit. Do we really have to push each single branch (worst-case: 500 branches!) manually into gerrit or is there a better solution? The gerrit daemon will run on the current git server.

Upvotes: 4

Views: 1481

Answers (2)

Brad
Brad

Reputation: 5532

There are a few options:

  1. Just move the repositories using filesystem commands to the correct location on your server. The Gerrit daemon will pick them up without any problems.

  2. Push them to the server using git bypassing review. git push $SERVER$ refs/heads/*:refs/heads/* should work just fine. You'll need to do this once per repository and it will push all the branches in that repository. You'll need permissions on Gerrit to create branches and bypass review.

Upvotes: 5

Adam Dymitruk
Adam Dymitruk

Reputation: 129594

Branches are very light in git. It shouldn't be an issue.

Upvotes: 0

Related Questions