git ignoring undoes and maybe fixing the dirty submodules