How to add a project to the gerrit code review tool?

How do I manually add a project to the gerrit code review tool?

I’ve seen some examples that execute a gerrit binary but my installation doesn’t appear to have one of these.

  • How does Gerrit implement its ‘magical’ refs?
  • Git cherry-pick: how to regenerate change id?
  • Setting up Gerrit with a Git mirror of a Subversion repository
  • Gerrit recreating change-ids
  • A Gerrit Instance that Can Rebase Projects to Google AOSP?
  • How to post votes on custom labels from jenkins gerrit trigger?
  • GitHub API - find when repo made private
  • Git config alias doesn't work anymore
  • Are file permissions and owner:group properties included in git commits?
  • Ignoring certain files when pushing an existing repo to a new Github repo
  • Keep part of .gitignore under version control but another part out
  • bash/zsh prompt displaying Git repository data right-aligned
  • 2 Solutions collect form web for “How to add a project to the gerrit code review tool?”

    For older Gerrit versions, you need to use the ssh interface. Set up your public key in the web interface then run:

    ssh -p <port> <user>@<gerrit-host> gerrit --help
    

    This will list you the available commands. What you actually need to run to create your project is:

    ssh -p <port> <user>@<gerrit-host> gerrit create-project -n <project-name>
    

    In Gerrit 2.3 and newer, you may alternatively create projects from the UI, by going to Admin->Projects->Create New Project.

    From gerrit 2.3.x, if you are in Administrator, you can create the project in the web as well.

    It is visible under Admin/Projects if you have permission.

    Git Baby is a git and github fan, let's start git clone.