L33T-KR3W / push-dir

👉📁 Push the contents of a directory to a remote branch
MIT License
267 stars 11 forks source link

Error with Jekyll #24

Open kbariotis opened 7 years ago

kbariotis commented 7 years ago
(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.

mjkatgithub commented 1 year ago

I didn't have the problem with Jekyll but with Nuxt but the solution was the same. Thanks kbariotis