Need to push existing git repo to Gerrit however have issues doing this:
remote: ERROR: missing Change-Id in commit message footer
because repo did not contain .git/hooks/commit-msg. Now I have the script installed, however need to change hundreds of commit messages to add Change-Id everywhere. How to make it automatically in the best and easiest way? 
Possible solutions:
- I see some topics here suggest to use git rebase -i, however it is interactive and mostly manual process.
- Others to use sedcommand withgit rebaseas commit message editor. What is the exactrebasecommand will be in my case?
- Third proposes to use git filter-branchcommand, however it works only for commits on a current branch that have not yet been pushed to an upstream branch.
Any other solutions, fixes or suggestions for the above? Thanks!
 
     
    