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

  • SEARCH
  • Home
  • 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 8204677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:58:09+00:00 2026-06-07T07:58:09+00:00

I submitted a patch for review to Gerrit, which created a review page. I

  • 0

I submitted a patch for review to Gerrit, which created a review page. I wanted to update the patch with some modifications, but unfortunately ended up submitting a new patch, which depended on the old one, along with a new corresponding review page. This happened because I did not amend to the previous commit, rather I made a new commit and pushed that for review.

What I’m wondering now is if there is a way revert the most recent commit, amend changes to the older commit and have that be reflected on Gerrit, thus removing the most recent review page and update the old one.

Feel free to edit my question, or ask me if I’m not being clear.

  • 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-07T07:58:10+00:00Added an answer on June 7, 2026 at 7:58 am

    Sure this is possible. There are 2 tasks – Clean up your Git repository and update Gerrit.

    To clean up git, there are a couple approaches. The most automatic method is to squash your 2 current commits together using git rebase -i. Another option is to do something like git checkout HEAD^ && <make edits> && git commit --amend.

    Once you are happy with your git tree, push up to Gerrit creating a new patch set for your original change. Then use the ‘Abandon’ button on the change you made accidentally and you should be good to go.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Noticed this today when a patch was submitted with the following line: lblCompletionTime.Text =
I submitted 5 jobs to an ExecutorCompletionService , but it seems like the jobs
I submitted an iPhone application to the app store, but it is failed to
I submitted a form via jquery, but I need the ActionResult to return true
I submitted my application to apple for review.Apple rejected and gave me the following
I have a form which is submitted via ajax triggered by an image click,
I have a Django app which, submitting a package, should return values that are
I have a simple login page but i am having trouble displaying the logged
We have some software which relied on certain behavior from another ( very commonly
I found that when clicking Submit Patch Set in the Gerrit web interface, it'll

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.