Skip to main content

Exclude folders as a pattern (for example, all "node_modules" folders no matter where they are)

Thread needs solution

I read the docs and some forum posts, still I am not sure what is the correct exclusion criteria for excluding all folders that have a particular name, no matter where they are.

Examples of folders I want to exclude:

node_modules
.git
.idea
 

The above folders are repeated on every project/repo that I have and take a lot of size while they are not needed for backup.

So, what is the proper exclusion pattern?

Thank you!

0 Users found this helpful

Likno,

Wildcards should be used such as:

*.git

*.idea

*.node_modules

\node_modules\*.git