Import repository from git to gerrit -
i have 2 questions gerrit:
how convert or import existing git repository gerrit's format? there lot of commits without gerrit control, want force commits gerrit project.
i see 2 ways it:
copy existing bare git directory gerrit , add together database. safe method?
push commits local repository gerrit repository.
how revert repository gerrit original git format? required remove gerrit's special */for/*
branches that?
first of all: there no special "gerrit format". gerrit works regular git repositories.
create new project in gerrit (without initial commit). add together created repository remote existing repository , push. can configure gerrit allow direct pushing repository (bypassing review), allowing import entire repository.
alternatively, if have direct access gerrit's repository location (e.g. via ssh or on local filesystem), can force straight repository (whereever gerrit created it), bypassing gerrit entirely. you'll need flush gerrit caches afterwards, however, gerrit notice repository heads have updated.
as said, there no "gerrit format". clone repository gerrit, , well. don't need worry special branches.
git gerrit
No comments:
Post a Comment