Trying to run git rm -r * on a branch. I have dist in .gitignore, but still get this error:
git rm -r *
dist
.gitignore
fatal: pathspec 'dist' did not match any files
Thoughts?
You're seeing this error because * is actually interpolated by your shell into the list of all files; git doesn't know you're trying to use a wildcard. git rm -r . ("delete all files recursively, starting from this folder") should work instead.
*
git rm -r .
You're seeing this error because
*
is actually interpolated by your shell into the list of all files; git doesn't know you're trying to use a wildcard.git rm -r .
("delete all files recursively, starting from this folder") should work instead.