Still trying to learn how to use Gerrit and its process. Steps I did where
- Push first
change1
to gerrit for review to HEAD:refs/for/develop - Work on something else on same branch and push
change2
to gerrit for review to HEAD:refs/for/develop
Both commits have gerrit Change-ID lines
So now I want to address issue for change1
so I did
git checkout -b change1 <change 1's commit id>
Made my changes and committed (adding the Change-ID to the commit message)
git add .
git commit
Now when I do
git push origin HEAD:refs/for/develop
I get
! [remote rejected] HEAD -> refs/for/develop (squash commits first)
error: failed to push some refs to 'ssh://[email protected]:29418/CommunicationsLibrary'
How do I fix issues in stacked reviews and post it to gerrit without having to create yet another review?