Add gitignore for SolidWorks projects#4813
Open
danilofroes wants to merge 2 commits intogithub:mainfrom
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new .gitignore template for SolidWorks projects to keep common temporary, backup, and generated output files out of version control.
Changes:
- Introduce
SolidWorks.gitignorewith ignore rules for SolidWorks temp files. - Add ignore rules for backup/auto-recovery artifacts.
- Ignore a simulation results cache directory.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
SolidWorks.gitignore
Outdated
Comment on lines
+3
to
+6
| # SolidWorks temporary files | ||
| ~$* | ||
|
|
||
| # Redundant entries for SolidWorks temporary files |
SolidWorks.gitignore
Outdated
| ~$*.sldasm | ||
| ~$*.slddrw | ||
|
|
||
| # SolidWorks backups e auto-recovery |
|
Vicificiciciccicicicuccicicicicicifu4
niedz., 15 mar 2026, 20:32 użytkownik Danilo Fróes ***@***.***>
napisał:
… SolidWorks is one of the most famous and widely used CAD tools in the
world.
It generates many temporary files, and a .gitignore file is necessary to
avoid unnecessary files in the repository.
Link to application or project’s homepage: https://www.solidworks.com/
Merge and Approval Steps
- Confirm that you've read the contribution guidelines
<https://github.com/github/gitignore/tree/main?tab=readme-ov-file#contributing-guidelines>
and ensured your PR aligns
- Ensure CI is passing
- Get a review and Approval from one of the maintainers
------------------------------
You can view, comment on, or merge this pull request online at:
#4813
Commit Summary
- 7db9624
<7db9624>
Add gitignore for SolidWorks projects
File Changes
(1 file <https://github.com/github/gitignore/pull/4813/files>)
- *A* SolidWorks.gitignore
<https://github.com/github/gitignore/pull/4813/files#diff-ffab0fb3c02d6cbcc010f4d03788e6c9f69c8836ab76463b1d3b6b92bb087a1d>
(16)
Patch Links:
- https://github.com/github/gitignore/pull/4813.patch
- https://github.com/github/gitignore/pull/4813.diff
—
Reply to this email directly, view it on GitHub
<#4813>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BWBQRBPICWP5WDSEVFB7B6T4Q4ANHAVCNFSM6AAAAACWSULL6OVHI2DSMVQWIX3LMV43ASLTON2WKOZUGA3TSMBTGEYTAOA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
|
Fififfifififificicifificificificifcicicicicu4
niedz., 15 mar 2026, 20:34 użytkownik Copilot ***@***.***>
napisał:
… ***@***.**** commented on this pull request.
Pull request overview
Adds a new .gitignore template for SolidWorks projects to keep common
temporary, backup, and generated output files out of version control.
*Changes:*
- Introduce SolidWorks.gitignore with ignore rules for SolidWorks temp
files.
- Add ignore rules for backup/auto-recovery artifacts.
- Ignore a simulation results cache directory.
------------------------------
💡 Add Copilot custom instructions
<http:///github/gitignore/new/main?filename=.github/instructions/*.instructions.md>
for smarter, more guided reviews. Learn how to get started
<https://docs.github.com/en/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot>
.
You can also share your feedback on Copilot code review. Take the survey
<https://www.surveymonkey.com/r/XP6L3XJ>.
------------------------------
In SolidWorks.gitignore
<#4813 (comment)>:
> +# SolidWorks temporary files
+~$*
+
+# Redundant entries for SolidWorks temporary files
The temp-file patterns here are redundant: ~$* already matches the three
~$*.sld* patterns below. Consider removing the redundant entries and/or
narrowing the pattern to SolidWorks-specific extensions (e.g., keep only
the ~$*.sldprt/~$*.sldasm/~$*.slddrw lines) to avoid over-ignoring
unrelated ~$* files.
------------------------------
In SolidWorks.gitignore
<#4813 (comment)>:
> @@ -0,0 +1,16 @@
+# gitignore file for a SolidWorks project
+
+# SolidWorks temporary files
+~$*
+
+# Redundant entries for SolidWorks temporary files
+~$*.sldprt
+~$*.sldasm
+~$*.slddrw
+
+# SolidWorks backups e auto-recovery
This comment mixes languages ("backups e auto-recovery"). Please change
"e" to "and" for consistency and readability.
—
Reply to this email directly, view it on GitHub
<#4813 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BWBQRBPI2KZB2CZZDP34LAD4Q4AULAVCNFSM6AAAAACWSULL6OVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTSNJQGU3TENRTGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Added case-sensitive entries for SolidWorks temporary files and backups.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SolidWorks is one of the most famous and widely used CAD tools in the world.
It generates many temporary files, and a .gitignore file is necessary to avoid unnecessary files in the repository.
Link to application or project’s homepage: https://www.solidworks.com/
Merge and Approval Steps