I am working in Laravel 5.6.*(probably latest in 5.6 line) project, where I just found that the npm run dev
command generated bunch of CSS & JS files into /public/css
and /public/js
paths respectively.
When I try to block those files from being detected by Git, thro' .gitignore like below, it still gets detected, why this unexpected behavior ?:
.gitignore trial 1:
/public/css
/public/js
.gitignore trial 2:
public/css/*
public/js/*
I haven't edited the GitBash version(2.14.*, Windows 10) I am using, so I suppose both the above syntax should work, but they both aren't, can anyone help out ?