Changes lost by trying to commit submodule before containing repository