From fdc1acb1bc77a8ba34b456a69dda84574f4c7c69 Mon Sep 17 00:00:00 2001 From: Matt Walsh <51417385+netbymatt@users.noreply.github.com> Date: Thu, 13 Mar 2025 13:07:41 -0500 Subject: [PATCH] Update TwinCAT3.gitignore A recent major revision from Beckhoff added several new suggested lines to gitignore. All existing items are still present, however the new file has been copied verbatim from TwinCAT documentation. https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_sourcecontrol/14604066827.html&id= --- TwinCAT3.gitignore | 58 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 17 deletions(-) diff --git a/TwinCAT3.gitignore b/TwinCAT3.gitignore index 7bd6f875..4037daf1 100644 --- a/TwinCAT3.gitignore +++ b/TwinCAT3.gitignore @@ -1,25 +1,49 @@ -# gitignore template for TwinCAT3 +### TwinCAT3 ### # website: https://www.beckhoff.com/twincat3/ -# -# Recommended: VisualStudio.gitignore -# TwinCAT files +# TwinCAT PLC +*.plcproj.bak +*.plcproj.orig *.tpy *.tclrs +*.library *.compiled-library *.compileinfo -# Don't include the tmc-file rule if either of the following is true: -# 1. You've got TwinCAT C++ projects, as the information in the TMC-file is created manually for the C++ projects (in that case, only (manually) ignore the tmc-files for the PLC projects) -# 2. You've created a standalone PLC-project and added events to it, as these are stored in the TMC-file. -*.tmc -*.tmcRefac -*.library -*.project.~u -*.tsproj.bak -*.xti.bak +*.asm +*.core LineIDs.dbg LineIDs.dbg.bak -_Boot/ -_CompileInfo/ -_Libraries/ -_ModuleInstall/ \ No newline at end of file + +# TwinCAT C++ and shared types +# ignoring the TMC file is only useful for plain PLC programming +# as soon as shared data types (via tmc), C++ or in general TcCom-Module are used, the TMC file has to be part of the repository +*.tmc +*.tmcRefac + +# TwinCAT project files +*.tsproj.bak +*.tsproj.b?k +*.tsproj.orig +*.xti.bak +*.xti.bk? +*.xti.orig +*.xtv +*.xtv.bak +*.xtv.bk? + +# Multiuser specific +**/.TcGit/ + +# exclude not required folders +**/_Boot/ +**/_CompileInfo/ +**/_Libraries/ +**/_ModuleInstall/ +**/_Deployment/ +**/_Repository/ + +# VS Shell project specific files and folders +**/.vs/ +*.~u +*.project.~u +*.suo