.gitignore pour Eclipse
28 règles d’exclusion pour Eclipse, prêtes à copier dans votre dépôt.
IDE open source principalement pour le développement Java
Le .gitignore complet pour Eclipse
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:27:45 UTC
# Technologies: Eclipse
### Eclipse ###
# Backup file
*.bak
# Eclipse workspace metadata
.metadata
# Eclipse output directory
bin/
# Temporary files directory
tmp/
# Temporary files
*.tmp
# Vim swap file
*.swp
*~.nib
# Android local config
local.properties
# Eclipse project settings
.settings/
# Eclipse load path
.loadpath
# Eclipse recommenders
.recommenders
# Eclipse external tools
.externalToolBuilders/
# Eclipse launch configuration
*.launch
*.pydevproject
# Eclipse C/C++ project
.cproject
.autotools
# Eclipse annotation factory
.factorypath
# Eclipse build path
.buildpath
# Eclipse target platform
.target
# Eclipse Tern.js project
.tern-project
# Eclipse TeXlipse
.texlipse
# Eclipse Spring beans
.springBeans
# Eclipse code recommenders
.recommenders/
# Eclipse annotation processing
.apt_generated/
.apt_generated_tests/
# Eclipse Scala cache
.cache-main
# Eclipse Scala dependencies
.scala_dependencies
# Eclipse Scala worksheet
.worksheet
Ce que ces règles Eclipse ignorent vraiment
Chaque motif ci-dessous, et pourquoi il a sa place dans votre .gitignore.
General
| Motif | Ce qu’il ignore |
|---|---|
.metadata |
Eclipse workspace metadata |
*.bak |
Backup file |
bin/ |
Eclipse output directory |
tmp/ |
Temporary files directory |
*.tmp |
Temporary files |
*.swp |
Vim swap file |
*~.nib |
General |
local.properties |
Android local config |
.settings/ |
Eclipse project settings |
.loadpath |
Eclipse load path |
.recommenders |
Eclipse recommenders |
External tool builders
| Motif | Ce qu’il ignore |
|---|---|
.externalToolBuilders/ |
Eclipse external tools |
Locally stored "Eclipse launch configurations"
| Motif | Ce qu’il ignore |
|---|---|
*.launch |
Eclipse launch configuration |
PyDev specific (Python IDE for Eclipse)
| Motif | Ce qu’il ignore |
|---|---|
*.pydevproject |
PyDev specific (Python IDE for Eclipse) |
CDT-specific (C/C++ Development Tooling)
| Motif | Ce qu’il ignore |
|---|---|
.cproject |
Eclipse C/C++ project |
CDT- autotools
| Motif | Ce qu’il ignore |
|---|---|
.autotools |
CDT- autotools |
Java annotation processor (APT)
| Motif | Ce qu’il ignore |
|---|---|
.factorypath |
Eclipse annotation factory |
PDT-specific (PHP Development Tools)
| Motif | Ce qu’il ignore |
|---|---|
.buildpath |
Eclipse build path |
.target |
Eclipse target platform |
Tern plugin
| Motif | Ce qu’il ignore |
|---|---|
.tern-project |
Eclipse Tern.js project |
TeXlipse plugin
| Motif | Ce qu’il ignore |
|---|---|
.texlipse |
Eclipse TeXlipse |
STS (Spring Tool Suite)
| Motif | Ce qu’il ignore |
|---|---|
.springBeans |
Eclipse Spring beans |
Code Recommenders
| Motif | Ce qu’il ignore |
|---|---|
.recommenders/ |
Eclipse code recommenders |
Annotation Processing
| Motif | Ce qu’il ignore |
|---|---|
.apt_generated/ |
Eclipse annotation processing |
.apt_generated_tests/ |
Annotation Processing |
Scala IDE specific (Scala & Java development for Eclipse)
| Motif | Ce qu’il ignore |
|---|---|
.cache-main |
Eclipse Scala cache |
.scala_dependencies |
Eclipse Scala dependencies |
.worksheet |
Eclipse Scala worksheet |
Comment utiliser ce .gitignore pour Eclipse
- Copiez les règles Eclipse ci-dessus, ou téléchargez directement le fichier.
- Créez un fichier nommé .gitignore à la racine de votre dépôt Git et collez-y les règles.
- 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.
- Commitez le .gitignore pour que toute l’équipe partage les mêmes règles.