-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-global-gitignore
executable file
·109 lines (89 loc) · 1.43 KB
/
setup-global-gitignore
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#!/usr/bin/env bash
set -o errexit -o noclobber -o nounset -o pipefail
USAGE="
setup-global-gitignore: setup a global gitignore
Usage:
$0
"
if [[ $# != 0 ]]; then
echo "$USAGE"
exit 1
fi
cat << EOF > ~/.gitignore.global
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# Use https://www.toptal.com/developers/gitignore/ to generate extra entries.
# These entries ARE NOT exhuastive and that is by design to keep this file manageable.
### General ###
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Runtime data
pids
*.pid
*.seed
*.pid.lock
*.log
### Editor and IDE Files ###
.idea
*.iws
*.sublime-workspace
*.swp
*.tmp
.vscode/
.vs/
### Mac OS X files ###
.DS_Store
.AppleDouble
.LSOverride
### Terraform and Terragrunt ###
# Local .terraform directories
**/.terraform/*
# .tfstate files
*.tfstate
*.tfstate.*
# terragrunt cache directories
**/.terragrunt-cache/*
### Java ###
# Compiled class file
*.class
# Package Files
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
### Node ###
# Dependency directories
node_modules/
jspm_packages/
web_modules/
# Caches
.npm
.eslintcache
.stylelintcache
.cache/
### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# Distribution / packaging
.Python
develop-eggs/
.eggs/
*.egg-info/
*.egg
# Environments
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
EOF
set -o xtrace
git config --global core.excludesfile ~/.gitignore.global