Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8946751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:35:19+00:00 2026-06-15T12:35:19+00:00

I have a Gerrit installation within which are several related projects (each in a

  • 0

I have a Gerrit installation within which are several related projects (each in a git repository). Another project is coming online would also use gerrit, but for the sake of tidiness I’d like to take the existing set of projects and put them under a new super-project (so that at the top level one sees the “umbrella” projects. I’d also like to retain the data we have for this (e.g., the review history).

How does one go about doing something like this? Another way of looking at this is, how does one move a sub-project in gerrit from one super-project to another?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:35:19+00:00Added an answer on June 15, 2026 at 12:35 pm

    Thanks to this blog post I stumbled upon this morning, I found a solid path to the solution! While it’s not exactly simple it’s robust and it works.

    Ensure you’ve already created the umbrella project you will be re-parenting the subproject to, and perform the following steps:

    MYGERRIT=ssh://${MYGERRIT_IP}:${MYGERRIT_PORT}
    
    mkdir ~/x
    cd ~/x
    
    # Clone the repo for the subproject you want to re-parent
    git clone ${MYGERRIT}/<subproject>
    cd <subproject>
    
    git fetch origin refs/meta/config:refs/remotes/origin/meta/config
    git checkout meta/config
    
    # Make changes to project.config
    -----> inheritFrom = <your_umbrella_project_name>
    
    # Commit changes
    git add -A
    EDITOR=vi git commit -a
    
    # Push changes
    git push origin meta/config:meta/config # If pushing directly
    #git push origin meta/config:refs/for/meta/config # If going through gerrit
    
    # Flush gerrit caches
    ssh -p ${MYGERRIT_PORT} ${MYGERRIT_IP} gerrit flush-caches --cache project_list
    ssh -p ${MYGERRIT_PORT} ${MYGERRIT_IP} gerrit flush-caches --cache projects
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how do I mirror a git repository to Gerrit? I will do this: [git
I use git as my version control system and have set up a Gerrit
I have the following change history in my git repository: ---X---Y---Z---A---B---C I began working
I have the following open review in Gerrit: Change I37783be4 depends on Change Iff96ca11
have written this little class, which generates a UUID every time an object of
Have a procedure which looks like Procedure TestProc(TVar1, TVar2 : variant); Begin TVar1 :=
Have deployed numerous report parts which reference the same view however one of them
I have rolled a Gerrit instance for my organization, got LDAP authentication going, and
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I have a aosp mirror on a server called git. I can repo init

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.