I want to preserve it into the gerrit server so that all the history is shown in the All->merged of the gerrit server
...
it was not pushed because it does not have a change-id.
If you really want to show all commits in the All->merged page, you are doing it right. Be aware that once you work around the change-id issue you will have to mark each commit as reviewed and submit them individually. If you have a large number of commits in your repository history, this will take quite a while. You could look into automating it with an SSH or REST script.
To get past the change-id issue, there is a project setting to not require this tag. Go to the admin page for your project (See example) and look for the Require Change-Id in commit message:
setting. Change it to False
and save your changes, then do your push. You'll probably want to set it back to True
or Inherit
when you are done.