diff --git a/TwinCAT3.gitignore b/TwinCAT3.gitignore index 7bd6f87505..1ee3818829 100644 --- a/TwinCAT3.gitignore +++ b/TwinCAT3.gitignore @@ -21,5 +21,11 @@ LineIDs.dbg LineIDs.dbg.bak _Boot/ _CompileInfo/ -_Libraries/ -_ModuleInstall/ \ No newline at end of file +_ModuleInstall/ + +# Exclude all libraries +/**/_Libraries/*/ + +# To include a specific library directory (i.e. third party/custom libs), +# use pattern `!/**/_Libraries//` i.e. `!/**/_Libraries/www.tcunit.org/` +# \ No newline at end of file