.gitignore for GWT
11 ignore rules for GWT, ready to copy into your repository.
Development toolkit for browser-based applications
The complete .gitignore for GWT
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:30:25 UTC
# Technologies: GWT
### GWT ###
# Java compiled class file
*.class
# Java archive
*.jar
# Web application archive
*.war
war/gwt_bree/
gwt-unitCache/
# Eclipse annotation processing
.apt_generated/
war/WEB-INF/deploy/
war/WEB-INF/classes/
.gwt/
www-test/
.gwt-tmp/
What these GWT rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
General
| Pattern | What it ignores |
|---|---|
*.class |
Java compiled class file |
Package Files #
| Pattern | What it ignores |
|---|---|
*.jar |
Java archive |
*.war |
Web application archive |
war/gwt_bree/ |
gwt caches and compiled units # |
gwt-unitCache/ |
Package Files # |
.apt_generated/ |
Eclipse annotation processing |
war/WEB-INF/deploy/ |
more caches and things from deploy # |
war/WEB-INF/classes/ |
Package Files # |
.gwt/ |
compilation logs |
www-test/ |
gwt junit compilation files |
.gwt-tmp/ |
old GWT (1.5) created this dir |
How to use this .gitignore for GWT
- Copy the GWT rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.