I've referred to many related posts here and none of them work -- my public/images
folder just not greying out like my node_modules
folder does in my VS Code. The following is my folder structure:
project-folder
|--.gitignore
|--node_modules
|--public
|----images
So my .gitignore
file is at the same level at my public folder. I saw the node_modules
is being ignored (and greyed out) in the .gitignore
file like this:
node_modules/
So I tried:
public/images/
but no luck. I also tried all of the following but none turn the images
folder into grey:
1. /public/images/
2. /public/images
3. public/images
4. public/images/
5. images
6. images/
I also tried creating another .gitignore
file under the public
folder and follow the same way my node_modules
is being ignored but still not working: images/
. I heard that the git rm --cached
may sometimes remove files from file system, so I dare not try it. Can someone give me a better advice for this? Thanks!