I followed the docs, that suggested git init inside the generate .vuepress/dist folder, but when I run a new build, I think it's deleting the entire dist folder, along with the .git folder which is there because i want to push to github pages.
Maybe exclude the .git folder when clearing dist would solve this ?