Skip to main content
100%

Deploy to target branch (e.g. gh-pages)

✓ Published0🌍 Public
Aamazingandyyy
Last edited Sep 9, 2017
Created on Sep 10, 2017

This example shows a shell script that automates deploying a built `dist` folder to a target branch such as `gh-pages`. It uses Git commands, including `git subtree split` to isolate the `dist` directory and `git push origin` with a forced update to the remote branch. After pushing, it resets the local commit with `git reset --hard` and then pushes the original branch to the remote. The script relies solely on the Git command-line interface, with no JavaScript visualization libraries or data sources involved.

AI-generated description

Similar vizzes