First you commit/push to one repository
Then you update the submodule pointer in the parent repository