.gitignore pour TwinCAT 3

36 règles d’exclusion pour TwinCAT 3, prêtes à copier dans votre dépôt.

Logiciel d'automatisation

Le .gitignore complet pour 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

Ce que ces règles TwinCAT 3 ignorent vraiment

Chaque motif ci-dessous, et pourquoi il a sa place dans votre .gitignore.

TwinCAT PLC

Motif Ce qu’il ignore
*.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

Motif Ce qu’il ignore
*.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

Motif Ce qu’il ignore
**/.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

Motif Ce qu’il ignore
**/.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

Comment utiliser ce .gitignore pour TwinCAT 3

  1. Copiez les règles TwinCAT 3 ci-dessus, ou téléchargez directement le fichier.
  2. Créez un fichier nommé .gitignore à la racine de votre dépôt Git et collez-y les règles.
  3. Si certains de ces fichiers sont déjà suivis, lancez git rm -r --cached . puis recommitez — Git n’applique les règles d’exclusion qu’aux fichiers non suivis.
  4. Commitez le .gitignore pour que toute l’équipe partage les mêmes règles.

Autres modèles .gitignore Automation

Voir tous les modèles Automation