my git is not ignoring some files and folder.
this is my git status
deleted: storage/app/some_folder/700
700 is a file, without extension
my .gitignore
/storage/*.key
/storage/app/
my git is not ignoring some files and folder.
this is my git status
deleted: storage/app/some_folder/700
700 is a file, without extension
my .gitignore
/storage/*.key
/storage/app/
When you have added your files first it's insight the git repo and tracked until you remove the files. So remove the files first and then your files are ignored.
git rm --cached yourfiles
Then your files are removed for the next commit but still present in your folder. Then you can add the deleted files and they are removed.
Your .gitignore
is ignoring the folder, but not the files within it. As far as git is concerned, folders aren't even real! Add a wildcard to get it to ignore the contents of the folder:
/storage/*.key
/storage/app/*