Skip to content

Commit ffdbb5f

Browse files
committed
Git: Ignore common files
Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
1 parent 64aa1c4 commit ffdbb5f

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

.gitignore

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Version Tracking Ignore Rules for Git VCS
2+
# https://git-scm.com/docs/gitignore
3+
#
4+
# Exclude files not suitable for version tracking in Git
5+
#
6+
# This file is based on The Common .gitignore Templates
7+
# https://github.com/Lin-Buo-Ren/common-gitignore
8+
# Copyright 2021 林博仁(Buo-ren, Lin) <Buo.Ren.Lin@gmail.com>
9+
# SPDX-License-Identifier: CC-BY-SA-4.0
10+
11+
# Don't track regular Unix hidden files
12+
.*
13+
14+
# Do track Git configuration files
15+
!.git*
16+
17+
# Do track EditorConfig configuration files
18+
# https://editorconfig.org/
19+
!.editorconfig
20+
21+
# Do track pre-commit configuration files
22+
# https://pre-commit.com/
23+
!.pre-commit-config.yaml
24+
25+
# Do track Markdownlint configuration files
26+
# https://github.com/DavidAnson/markdownlint
27+
!.markdownlint.*
28+
29+
# Do track Drone CI configuration files
30+
# https://docs.drone.io/
31+
!.drone.yml
32+
33+
# Do track REUSE configuration files
34+
!.reuse/
35+
36+
# Don't track common backup filename extensions
37+
*~
38+
*.bk*
39+
*.bak*
40+
*.backup*
41+
*.old*
42+
*.bk*
43+
*.orig*
44+
45+
## Don't track common archive files
46+
*.7z
47+
*.bz2
48+
*.gz
49+
*.tar*
50+
*.xz
51+
*.zip
52+
53+
# Don't track binary image files
54+
*.bmp
55+
*.jpg
56+
*.png
57+
58+
# Don't track common export formats from Markdown
59+
*.doc?
60+
*.pdf
61+
*.htm?
62+
63+
# Don't track common program output logs
64+
*.log
65+
*.out
66+
*.output
67+
*.err
68+
*.error
69+
70+
# Don't track compiled Python code caches
71+
*.pyc
72+
73+
# Don't track Vagrant runtime directories
74+
.vagrant/

0 commit comments

Comments
 (0)