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 6664103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:34:23+00:00 2026-05-26T02:34:23+00:00

How do I submit a new ‘Patch Set’ to an existing Gerrit branch that’s

  • 0

How do I submit a new ‘Patch Set’ to an existing Gerrit branch that’s been reviewed? When I log into the review website, I am given a chance to copy checkout/pull/cherry-pick and patch commands..

I tried the checkout command to get the code into my local workspace:

git fetch http://website/project refs/changes/##/####/# && git checkout FETCH_HEAD
git checkout -b my_new_branch

Then I made changes to the files
then I added the local files to the branch by running

git add <filename>

now to submit them back to the repository, I figured I would need to do a

repo commit -m "message"
repo upload <projectname>

but it was telling me I don’t have a branch!! So I tried a

repo start <branch name> <project name>

and that cleared my changes…. back to point A…. what are the PROPER order of commands here 🙂 sorry folks, I am still trying to wrap my head around this whole git system! Blaaah… SVN user here 🙂

  • 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-05-26T02:34:23+00:00Added an answer on May 26, 2026 at 2:34 am

    We are using gerrit without repo so this would be my approach to amend an existing patch after a review:

    Checkout the change (the checkout -b is optional but recommended)

    # From gerrit web, button "Download->Checkout"
    git fetch http://website/project refs/changes/##/####/# && git checkout FETCH_HEAD
    
    # This is a good moment to create a local branch, just in case...
    git checkout -b my_new_branch
    

    Fix things, fix commit and push for review. Git will give you a chance to edit the message, remember to keep the Change-Id or add it if you don’t have any hook

    git add <filename>
    git commit --amend
    git push http://website/project HEAD:refs/for/<branch_name>
    

    You can get the branch name and Change-Id from the existing Change in the gerrit web interface.

    More info: Gerrit Uploading changes

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

Sidebar

Related Questions

I have a html form that posts to a new page on submit. If
I have a button element that I've created like so: $submit = new Zend_Form_Element_Button('submit');
I was trying to insert new data into an existing XML file, but it's
Let's say I have an application that utilizes the Executor framework as such Executors.newSingleThreadExecutor().submit(new
I have the following Java code: final Future future = exeService.submit( new Runnable() {
When I submit a new name and not a new avatar I get the
I want the submit button to disappear after it's clicked and a new layer
I'm using the Fogbugz API (v6.0) to submit new cases from some error reporting
I want to add an email field to submit new comment form in Drupal
I plan to submit my new app to App Store. App consist of a

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.