]>
Witch of Git - web/blog/blob - publish.sh
3 if output
=$
(git status
--porcelain) && [ -n "$output" ]; then
4 echo "Working directory not clean. Stash or commit your changes."
9 if ! eleventy
--output=$dir; then
14 starting_branch
=$
(git symbolic-ref
--short HEAD
)
19 git commit
-m "Publish"
20 git checkout
"$starting_branch"
21 echo "Committed. Run: git push $(git remote) master:master"