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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:44:50+00:00 2026-06-03T02:44:50+00:00

It appears that when using gerrit, by default all changes depend on the previous

  • 0

It appears that when using gerrit, by default all changes depend on the previous one. I do not branch for new changes, I simply work off the master branch and then push the commited changes to a remote origin/master. A dependency is created every time even if the two commits have nothing to do with each other.

I’ve run into a few issues which makes me think that I am not using git correctly in combination with gerrit.

What should happen differently in my git/gerrit workflow for every commit to not be dependent on the previous commit? I’ve also tried creating a new branch for the change:

> git pull origin master
> git checkout -b new_branch
> #make a change
> git add -A
> git commit #with gerrit's commit hook in .git/hooks
> git push origin <sha1>:refs/for/master

This works, but gerrit still reports a dependency on the previously commited item.

  • 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-03T02:44:51+00:00Added an answer on June 3, 2026 at 2:44 am

    This is what Gerrit means by dependencies – A commit which is on top of another commit. If both are in review, the newer one depends on the older one.

    If you don’t want them to depend on each other, don’t create the commits on top of each other. Create one commit, then make a new branch based on master for your next commit

    (git checkout origin/master -b NEW_BRANCH_NAME).

    When you push the second commit up for review, it’s parent will already be published and it won’t depend on anything.

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

Sidebar

Related Questions

It appears that SQLite does not enforce foreign keys by default. I'm using sqlitejdbc-v056.jar
It appears that we will have to build/deploy one of our new JBoss apps
Using Browserlab, it appears that the background image is not centred in Firefox7 for
Appears that WAS does not support the integration binding. I've tried setting it up
I am using ColdFusion 9.0.1. I have a new web site that uses Bikes.cfm
Sometimes I do consultancy work for companies that are still using Visual Studio 2008,
It appears that using perldoc perl gives the list of, e.g. perlre, perlvar, etc.
It appears that when using a having clause a count(*) is evaluated before the
It appears that using [] around a generator expression (test1) behaves substantially better than
While using the ZenDesk Feedback Tab you it appears that if you have too

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.