Fix unable to push with git submodules

Squashes every commit into one, which is the equivalent of rm -rf '.git'. without losing submodule information.