From this discussion,
We know that we could uncheck some local files from Git. What if we want to uncheck everything inside a folder including all things its sub-folders. And all things that will be generated in it.
From this discussion,
We know that we could uncheck some local files from Git. What if we want to uncheck everything inside a folder including all things its sub-folders. And all things that will be generated in it.
I'm not sure what you're talking about with "uncheck", but let's say you're talking about Untracking
Here's how to do that
From the root directory of the project:
git rm -r --cached folder_to_untrack
echo "/folder_to_untrack" >> .gitignore
This will add remove from git index folder_to_untrack and every subentry. Adding it to gitignore will prevent it to be shown in Untracked files sections from git status and to be added by mistake using git add