Skip to content

Commit 2d5209c

Browse files
committed
updating notes on gitignoring file configurations
1 parent de7524f commit 2d5209c

File tree

1 file changed

+265
-0
lines changed

1 file changed

+265
-0
lines changed
+265
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,268 @@
11
```
2+
# See https://help.github.com/ignore-files/ for more about ignoring files.
3+
4+
node_modules/
5+
# The above is the MOST EFFECTIVE ONE as per
6+
# https://stackoverflow.com/a/1470664/1902852
7+
# The way to ignore all directories called "node_modules"
8+
# anywhere below the current level in a directory tree
9+
10+
# Further if I have already pushed a directory to remote then remove that with below
11+
# Execute a folder remove (rm) from index only (--cached) recursivelly (-r). Command line example for root bin folder:
12+
# `git rm -r --cached full_absolute_path`
13+
# e.g. I had to run the below kind of command to remove the ".next" folder that was pushed to remote github
14+
# passing the full path of the .next folder
15+
# git rm -r --cached /media/veracrypt2/014-agency-classic-next/.next
16+
17+
*node_modules
18+
/*node_modules
19+
*/*node_modules
20+
**/*node_modules
21+
/node_modules
22+
/node_modules/*
23+
*/node_modules/*
24+
25+
# If you have performed a task, such as adding a new line item to your .gitignore file, I MUST need to clear out your git repo's cache in order for the changes to take place. Here are the commands for doing that:
26+
# git rm -r --cached . && git add . && git commit -am 'git cache cleared' && git push
27+
28+
29+
__MACOSX/
30+
*__MACOSX
31+
/*__MACOSX
32+
*/*__MACOSX
33+
**/*__MACOSX
34+
/__MACOSX
35+
/__MACOSX/*
36+
*/__MACOSX/*
37+
38+
.next/
39+
*.next
40+
/*.next
41+
*/*.next
42+
**/*.next
43+
/.next
44+
/.next/*
45+
*/.next/*
46+
47+
.npy/
48+
*.npy
49+
/*.npy
50+
*/*.npy
51+
**/*.npy
52+
/.npy
53+
54+
# testing
55+
coverage/
56+
*coverage
57+
/*coverage
58+
*/*coverage
59+
**/*coverage
60+
/coverage
61+
/coverage/*
62+
*/coverage/*
63+
64+
# production
65+
build/
66+
*build
67+
/*build
68+
*/*build
69+
**/*build
70+
/build
71+
/build/*
72+
*/build/*
73+
74+
75+
.db/
76+
*.db
77+
/*.db
78+
*/*.db
79+
**/*.db
80+
/.db
81+
82+
.pkl/
83+
*.pkl
84+
/*.pkl
85+
*/*.pkl
86+
**/*.pkl
87+
/.pkl
88+
89+
.pyc/
90+
*.pyc
91+
/*.pyc
92+
*/*.pyc
93+
**/*.pyc
94+
/.pyc
95+
96+
*.txt
97+
/*.txt
98+
*/*.txt
99+
**/*.txt
100+
/.txt
101+
102+
*.csv
103+
/*.csv
104+
*/*.csv
105+
**/*.csv
106+
/.csv
107+
108+
109+
*glove_vectors
110+
/glove_vectors
111+
*/*glove_vectors
112+
**/*glove_vectors
113+
/glove_vectors
114+
115+
116+
117+
*.zip
118+
/*.zip
119+
*/*.zip
120+
**/*.zip
121+
/.zip
122+
123+
*.rar
124+
/*.rar
125+
*/*.rar
126+
**/*.rar
127+
/.rar
128+
129+
*.7z
130+
/*.7z
131+
*/*.7z
132+
**/*.7z
133+
/.7z
134+
135+
LARGE_Datasets
136+
*/LARGE_Datasets
137+
*/LARGE_Datasets/**
138+
**/LARGE_Datasets/**
139+
140+
# *** END OF FILES SPECIFIC TO ML Projects ****
141+
142+
# testing
143+
/coverage
144+
145+
# production
146+
/build
147+
148+
# misc
149+
.DS_Store
150+
.env.local
151+
.env.development.local
152+
.env.test.local
153+
.env.production.local
154+
155+
npm-debug.log*
156+
yarn-debug.log*
157+
yarn-error.log*
158+
159+
# Ignore docs files
160+
_gh_pages
161+
.ruby-version
162+
163+
# Numerous always-ignore extensions
164+
*.diff
165+
*.err
166+
*.orig
167+
*.log
168+
*.rej
169+
*.swo
170+
*.swp
171+
*.vi
172+
*~
173+
*.~lock*
174+
.~lock*
175+
*.asm
176+
*.bytes
177+
178+
179+
180+
# OS or Editor folders
181+
.DS_Store
182+
._*
183+
Thumbs.db
184+
.cache
185+
.project
186+
.settings
187+
.tmproj
188+
*.esproj
189+
nbproject
190+
*.sublime-project
191+
*.sublime-workspace
192+
.idea
193+
node_modules
194+
Others_Code_gitignore
195+
Project-Note-PAUL
196+
.vscode
197+
198+
199+
# Ignore all logfiles and tempfiles.
200+
*glove_vectors
201+
!/log/.keep
202+
/tmp
203+
/.gems
204+
205+
# Komodo
206+
*.komodoproject
207+
.komodotools
208+
209+
# grunt-html-validation
210+
validation-status.json
211+
validation-report.json
212+
213+
CountDownTimer-Note.odt
214+
random-code-1.js
215+
random-code-2.js
216+
random-code-3.js
217+
performance-1.js
218+
219+
#ignore file name ending in "-bkp.js" OR "-bkp.ts" OR "-bkp.py" or "-test.js" OR "-test.ts" in its name. So I will have to put "-test.js" at all files that is just for my development-time random testing code .
220+
**/*-bkp.js
221+
**/*-bkp.ts
222+
**/*-bkp.py
223+
**/*-BKP.py
224+
*-BKP.py
225+
**/*-bkp.ipynb
226+
**/*-BKP.ipynb
227+
*-BKP.ipynb
228+
**/*-test.js
229+
**/*-test.ts
230+
**/*-test.py
231+
**/*-test-.py
232+
**/*test-.py
233+
**/*-test.ipynb
234+
**/*-test.md
235+
**/*-test.json
236+
**/* (copy).ipynb
237+
**/* (copy).py
238+
239+
240+
241+
# to-ignore-files-ending with -with "test-any-number.js"
242+
**/*test-[0-9]*.js
243+
244+
# to-ignore-files-ending with -with "test-any-number.ts"
245+
**/*test-[0-9]*.ts
246+
247+
# to-ignore-files-ending with -with "test-any-number.py"
248+
**/*test-[0-9]*.py
249+
250+
# to-ignore-files-ending with -with "test-any-number.ipynb"
251+
**/*test-[0-9]*.ipynb
252+
253+
# to-ignore-files-ending with -with "untitled-any-number.ipynb"
254+
**/*untitled-[0-9]*.ipynb
255+
256+
# to-ignore-files-ending with -with "untitled.ipynb"
257+
**/*untitled.ipynb
258+
259+
# If you only want to ignore files-ending with -with "test-any-number.py" in the /static/img/ subdirectory you should either add the following line - to .gitignore file inside that subdirectory
260+
# **/*test-[0-9]*.py
261+
262+
# OR add the following line in your root .gitignore:
263+
264+
# /static/img/test-[0-9]*.py
265+
# Source - https://stackoverflow.com/a/18592835/1902852
266+
.Rproj.user
2267
3268
```

0 commit comments

Comments
 (0)