I have a folder logs/ which was added in .git There may be files and sub-folders as well inside logs/ I want to ignore everything inside logs/ but not the logs/ folder itself.
I found following command to remove previously added file:
git rm --cached filename
but not able to ignore files and folders inside logs/ I also tried git rm --cached logs/*
but it shows all files inside it as deleted
but of no help :(
I simply want git to ignore everything inside logs/