Skip to content

Commit 55e05e5

Browse files
committed
Improve .gitignore to cover more generated and trash files from various systems and IDEs.
1 parent 4f9617d commit 55e05e5

File tree

1 file changed

+204
-6
lines changed

1 file changed

+204
-6
lines changed

.gitignore

Lines changed: 204 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,208 @@
1-
/target
1+
# Created by https://www.toptal.com/developers/gitignore/api/rust,intellij+all,vim,emacs,windows,linux,macos
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=rust,intellij+all,vim,emacs,windows,linux,macos
3+
4+
### Emacs ###
5+
# -*- mode: gitignore; -*-
6+
*~
7+
\#*\#
8+
/.emacs.desktop
9+
/.emacs.desktop.lock
10+
*.elc
11+
auto-save-list
12+
tramp
13+
.\#*
14+
15+
# Org-mode
16+
.org-id-locations
17+
*_archive
18+
19+
# flymake-mode
20+
*_flymake.*
21+
22+
# eshell files
23+
/eshell/history
24+
/eshell/lastdir
25+
26+
# elpa packages
27+
/elpa/
28+
29+
# reftex files
30+
*.rel
31+
32+
# AUCTeX auto folder
33+
/auto/
34+
35+
# cask packages
36+
.cask/
37+
dist/
38+
39+
# Flycheck
40+
flycheck_*.el
41+
42+
# server auth directory
43+
/server/
44+
45+
# projectiles files
46+
.projectile
47+
48+
# directory configuration
49+
.dir-locals.el
50+
51+
# network security
52+
/network-security.data
53+
54+
### Intellij+all ###
55+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
56+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
57+
58+
.idea/*
59+
60+
# CMake
61+
cmake-build-*/
62+
63+
# Mongo Explorer plugin
64+
.idea/**/mongoSettings.xml
65+
66+
# File-based project format
67+
*.iws
68+
69+
# IntelliJ
70+
out/
71+
72+
# mpeltonen/sbt-idea plugin
73+
.idea_modules/
74+
75+
# JIRA plugin
76+
atlassian-ide-plugin.xml
77+
78+
# Crashlytics plugin (for Android Studio and IntelliJ)
79+
com_crashlytics_export_strings.xml
80+
crashlytics.properties
81+
crashlytics-build.properties
82+
fabric.properties
83+
84+
### Linux ###
85+
86+
# temporary files which can be created if a process still has a handle open of a deleted file
87+
.fuse_hidden*
88+
89+
# KDE directory preferences
90+
.directory
91+
92+
# Linux trash folder which might appear on any partition or disk
93+
.Trash-*
94+
95+
# .nfs files are created when an open file is removed but is still being accessed
96+
.nfs*
97+
98+
### macOS ###
99+
# General
100+
.DS_Store
101+
.AppleDouble
102+
.LSOverride
103+
104+
# Icon must end with two \r
105+
Icon
106+
107+
# Thumbnails
108+
._*
109+
110+
# Files that might appear in the root of a volume
111+
.DocumentRevisions-V100
112+
.fseventsd
113+
.Spotlight-V100
114+
.TemporaryItems
115+
.Trashes
116+
.VolumeIcon.icns
117+
.com.apple.timemachine.donotpresent
118+
119+
# Directories potentially created on remote AFP share
120+
.AppleDB
121+
.AppleDesktop
122+
Network Trash Folder
123+
Temporary Items
124+
.apdisk
125+
126+
### macOS Patch ###
127+
# iCloud generated files
128+
*.icloud
129+
130+
### Rust ###
131+
# Generated by Cargo
132+
# will have compiled files and executables
133+
debug/
134+
target/
135+
136+
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
137+
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
138+
Cargo.lock
139+
140+
# These are backup files generated by rustfmt
2141
**/*.rs.bk
142+
143+
# MSVC Windows builds of rustc generate these, which store debugging information
144+
*.pdb
145+
146+
### Vim ###
147+
# Swap
148+
[._]*.s[a-v][a-z]
149+
!*.svg # comment out if you don't need vector files
150+
[._]*.sw[a-p]
151+
[._]s[a-rt-v][a-z]
152+
[._]ss[a-gi-z]
153+
[._]sw[a-p]
154+
155+
# Session
156+
Session.vim
157+
Sessionx.vim
158+
159+
# Temporary
160+
.netrwhist
161+
# Auto-generated tag files
162+
tags
163+
# Persistent undo
164+
[._]*.un~
165+
166+
### Windows ###
167+
# Windows thumbnail cache files
168+
Thumbs.db
169+
Thumbs.db:encryptable
170+
ehthumbs.db
171+
ehthumbs_vista.db
172+
173+
# Dump file
174+
*.stackdump
175+
176+
# Folder config file
177+
[Dd]esktop.ini
178+
179+
# Recycle Bin used on file shares
180+
$RECYCLE.BIN/
181+
182+
# Windows Installer files
183+
*.cab
184+
*.msi
185+
*.msix
186+
*.msm
187+
*.msp
188+
189+
# Windows shortcuts
190+
*.lnk
191+
192+
# End of https://www.toptal.com/developers/gitignore/api/rust,intellij+all,vim,emacs,windows,linux,macos
193+
194+
# rebuilderd-specific stuff
3195
contrib/*.1
196+
4197
rebuilder.key
5198
rebuilder.v2.key
6-
/worker/build/
7-
/worker/cache/
8-
/data/
9-
/secret/
10-
*.sw[op]
199+
200+
rebuilderd.sign.key
201+
202+
worker/build/
203+
worker/cache/
204+
205+
data/
206+
secret/
207+
208+
rebuilderd.db*

0 commit comments

Comments
 (0)