.gitignore for SolidWorks
11 ignore rules for SolidWorks, ready to copy into your repository.
3D mechanical CAD software
The complete .gitignore for SolidWorks
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-09-17 18:11:14 UTC
# Technologies: SolidWorks
### SolidWorks ###
~$*.sldprt
~$*.sldasm
~$*.slddrw
~$*.sld
~$*.SLDPRT
~$*.SLDASM
~$*.SLDDRW
~$*.SLD
# Backup file
*.bak
# SolidWorks backup file
*.swbak
/simulation_results/
What these SolidWorks rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
SolidWorks temporary files
| Pattern | What it ignores |
|---|---|
~$*.sldprt |
SolidWorks temporary files |
~$*.sldasm |
SolidWorks temporary files |
~$*.slddrw |
SolidWorks temporary files |
~$*.sld |
SolidWorks temporary files |
For systems with case-sensitive (SolidWorks uses both)
| Pattern | What it ignores |
|---|---|
~$*.SLDPRT |
For systems with case-sensitive (SolidWorks uses both) |
~$*.SLDASM |
For systems with case-sensitive (SolidWorks uses both) |
~$*.SLDDRW |
For systems with case-sensitive (SolidWorks uses both) |
~$*.SLD |
For systems with case-sensitive (SolidWorks uses both) |
SolidWorks backups and auto-recovery
| Pattern | What it ignores |
|---|---|
*.bak |
Backup file |
*.swbak |
SolidWorks backup file |
Cache of simulation results
| Pattern | What it ignores |
|---|---|
/simulation_results/ |
Cache of simulation results |
How to use this .gitignore for SolidWorks
- Copy the SolidWorks 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.