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"