How to deploy subfolder to Github Pages

We can use git subtree to do this. And also nest git commands to execute force push (Reference).

Put this command to package.json file like bellow.

After that, we can use npm run deploy command to deploy subfolder to gh-pages branch.

zemna

Programmer/Web/Mobile/Desktop

You may also like...

Leave a Reply