.gitignore for TwinCAT 3

36 ignore rules for TwinCAT 3, ready to copy into your repository.

Automation software

The complete .gitignore for TwinCAT 3

# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-06-14 05:11:59 UTC
# Technologies: TwinCAT 3

### TwinCAT 3 ###
*.plcproj.bak
*.plcproj.orig
*.tpy
*.tclrs
*.library
*.compiled-library
*.compileinfo
*.asm
*.core
LineIDs.dbg
LineIDs.dbg.bak
*.tmc
*.tmcRefac
*.tsproj.bak
*.tsproj.b?k
*.tsproj.orig
*.tspproj.bak
*.xti.bak
*.xti.bk?
*.xti.orig
*.xtv
*.xtv.bak
*.xtv.bk?
*.xt?.bk?
*.xt?.orig
**/.TcGit/
**/_Boot/
**/_CompileInfo/
**/_Libraries/
**/_ModuleInstall/
**/_Deployment/
**/_Repository/
**/.vs/
*.~u
*.project.~u
# Solution user options
*.suo

What these TwinCAT 3 rules actually ignore

Every pattern below, and why it belongs in your .gitignore.

TwinCAT PLC

Pattern What it ignores
*.plcproj.bak TwinCAT PLC
*.plcproj.orig TwinCAT PLC
*.tpy TwinCAT PLC
*.tclrs TwinCAT PLC
*.library TwinCAT PLC
*.compiled-library TwinCAT PLC
*.compileinfo TwinCAT PLC
*.asm TwinCAT PLC
*.core TwinCAT PLC
LineIDs.dbg TwinCAT PLC
LineIDs.dbg.bak TwinCAT PLC
*.tmc 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
*.tmcRefac TwinCAT PLC

TwinCAT project files

Pattern What it ignores
*.tsproj.bak TwinCAT project files
*.tsproj.b?k TwinCAT project files
*.tsproj.orig TwinCAT project files
*.tspproj.bak TwinCAT project files
*.xti.bak TwinCAT project files
*.xti.bk? TwinCAT project files
*.xti.orig TwinCAT project files
*.xtv TwinCAT project files
*.xtv.bak TwinCAT project files
*.xtv.bk? TwinCAT project files
*.xt?.bk? TwinCAT project files
*.xt?.orig TwinCAT project files

Multiuser specific

Pattern What it ignores
**/.TcGit/ Multiuser specific
**/_Boot/ exclude not required folders
**/_CompileInfo/ Multiuser specific
**/_Libraries/ Multiuser specific
**/_ModuleInstall/ Multiuser specific
**/_Deployment/ Multiuser specific
**/_Repository/ Multiuser specific

VS Shell project specific files and folders

Pattern What it ignores
**/.vs/ VS Shell project specific files and folders
*.~u VS Shell project specific files and folders
*.project.~u VS Shell project specific files and folders
*.suo Solution user options

How to use this .gitignore for TwinCAT 3

  1. Copy the TwinCAT 3 rules above, or download the file directly.
  2. Create a file named .gitignore at the root of your Git repository and paste the rules into it.
  3. If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
  4. Commit the .gitignore so everyone on the team shares the same rules.

Other Automation .gitignore templates

See every Automation template