You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The first line tells Git to ignore all files in the result directory and all its subdirectories. However, the second line’s pattern is not able to “re-include” the .txt files. This is because Git’s pattern matching in .gitignore does not “look inside” or “traverse” directories that have already been excluded^1^.
# In other words, once a directory is ignored, Git doesn’t process any of its files to check for exceptions. So, if you ignore a directory (or all directories using **/*), you can’t then re-include specific files inside it^1^.