I thought! I am going to answer my question here:
I can use git update-index in combination with git filter-branch --index-filter .
Here's how to call update-index to modify the sub-module SHA commit:
git update-index
As far as I understand, 160,000 is the magic number in Git, used to identify the submodule.
source share