poetic / ember-cli-github-pages

Easily manage gh-pages of your ember-cli addon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rm: "." and ".." may not be removed

ChrisHonniball opened this issue · comments

At the command:

git checkout --orphan gh-pages && rm -rf `ls -a | grep -vE '.gitignore|.git|node_modules|bower_components|\.\/|\.\.\/'` && git add . && git commit -m "initial gh-pages commit"

I receive this error:

rm: "." and ".." may not be removed

There's a pull request to fix the docs. I also had issue with git add . not wanting to stage deleted files, so I switched that to git add -u .

The command that has been working for me is:

git checkout --orphan gh-pages && rm -rf `ls -a | grep -vE '\.gitignore|\.git|node_modules|bower_components|(^[.]{1,2}$)'` && git add -u && git commit -m "initial gh-pages commit"
commented

This will be resolved when I merge in #23. I'm just waiting on the PR to be updated.