(master)~/D/p/project ❯❯❯ ./node_modules/.bin/push-dir --dir=_site --branch=gh-pages --verbose
git --work-tree _site checkout --orphan gh-pages-ab1b97a
fatal: This operation must be run in a work tree
aborted: problem creating local orphan branch
The _site folder is being ignored by .gitignore. If I specify a folder that is not being ignored then it works like a charm.
The
_site
folder is being ignored by .gitignore. If I specify a folder that is not being ignored then it works like a charm.