1. Remove the dist folder from .gitignore.
2. Add the dist directory to your repository.
git add dist && commit -m "Initial dist commit"
3. Deploy the subtree to a different branch. Specify a relative path to your dist folder with the --prefix
git subtree push --prefix dist origin distbranch
4. Develop normally, committing your entire repository to your default branch.
5. To deploy the dist folder, run the subtree push command from the root.
git subtree push --prefix dist origin distbranch
That's it!
Hi!
ReplyDeleteAnd how do i get it to my self hosted server?
Thx
Hi!
ReplyDeleteAnd how do i get it to my self hosted server?
Thx