I’ve been using git but still having confusion about the .gitignore file paths.
So, what is the difference between the following two paths in .gitignore file?
tmp/* public/documents/**/*
I can understand that tmp/* will ignore all the files and folders inside it. Am I right? But what does that second line path mean?
This depends on the behavior of your shell. Git doesn’t do any work to determine how to expand these. In general,
*matches any single file or folder:**matches any string of folders:Combine
**with*to match files in an entire folder tree: