After searching for a light and finding quite a few similar questions, none of them seemed to really answer my question (below a list of related questions I found).
I am developing further changes on top of a commit not yet reviewed, but I want to keep the changes separate. When trying to push the new patch for review, I get the error:
! [remote rejected] HEAD -> refs/for/master (no changes made)
Scenario: In my branch I have Commit A (merged) <-- Commit B (cherry-picked/unmerged) <-- Commit C (with recent changes I want to push).
As mentioned, Commit C is dependent of B (but as I want them separate, a squash cannot be done. Also removing B is not an option, as it adds changes not yet present is C).
So when I try to push Commit C for review I get the error message above (I understand that is due to Commit B being below the new Commit C).
My question is: is there a way to send only Commit C up to Gerrit, before Commit B gets merged? Or I really must wait for B to be merged so I can send Commit C up?
Homework:
Gerrit workflow - push single commit to topic branch
Git / gerrit, push remote rejected no changes made
Is there a way to force Gerrit to have all commits in a branch be push to code review?