-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Build deletes the .git folder #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Where in the docs was this suggested? Haven’t come across it in my reading and that doesn’t sound like the right thing to do either! The Edit: found it! I think that’s a bit of a hacky way to get it to work with GitHub pages. It even sounds like they’re saying to run it with CI as you know it’s going to get wiped. Honestly, save yourself the headache and give Netlify a go for deployment. It’s super easy and won’t have this issue as it’s doing the building on their side. |
This is intended. You simply init a new repo and force push on each deploy. |
Copy/move Maybe this script will help you, but it is a PowerShell script. |
Some of us are deploying to intranet. Therefore cloud resources such as Netlify, etc aren't an easy option. We have an Enterprise Github instance, so I'll try @vhanla 's suggestion. |
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 entiredist
folder, along with the .git folder which is there because i want to push to github pages.Maybe exclude the
.git
folder when clearingdist
would solve this ?The text was updated successfully, but these errors were encountered: