All instructions are good until step 5 Clean your repository. It's a bad practice to edit the history of a repo. Just git rm -r the folder you just turned into a repo and then add it again as a submodule.
git rm -r