As you click on the new patch installed in gerrit, the changes should be on top of the existing commit SHA hash.
Since the rebased commit is local to gerrit (also probably to the user who reinstalls it) and was not sent to master, you cannot directly fetch / fetch from master since it does not exist in the remote branch.
You need to get a commit from gerrit to your local repo using the gerrit url and then merge / restore your local repo. Gerrit refspec should have the following format.
git fetch <Gerrit URL> <refs/changes/<change id>/<gerrit id>/<patch set
This git push issue is also reported when we select commit, which applies the changes introduced by some existing commits, but creates a new SHA hash, and we try to make changes on top of this new local commit.
source share