I added dist to my .gitignore but it was added to the tree in some other way.
I'm trying to remove it and clean up the tree using:
rm dist --cached
But am getting the error:
rm: unrecognized option `--cached'
Any help appreciated!
I added dist to my .gitignore but it was added to the tree in some other way.
I'm trying to remove it and clean up the tree using:
rm dist --cached
But am getting the error:
rm: unrecognized option `--cached'
Any help appreciated!
 
    
    Running rm dist --cached will not work because the rm command does not have the --cached option.
rmdocumentation: https://www.computerhope.com/unix/urm.htmThe
rmcommand is one of the basic Unix commands.
The --cached flag is one of the options of the git rm command. Hence, you can run: git rm -r --cached dist to unstage and remove the dist folder from the index.
git rmdocumentation: https://git-scm.com/docs/git-rm
--cachedUse this option to unstage and remove paths only from the index. Working tree files, whether modified or not, will be left alone.
-rAllow recursive removal when a leading directory name is given.
The following thread might give you more information as well: https://stackoverflow.com/a/1139797/5237070
