@@ -41,6 +41,233 @@ git branch --delete BRANCH_NAME
41
41
42
42
- .gitignore command [ guide] ( https://www.atlassian.com/git/tutorials/saving-changes/gitignore )
43
43
44
+ Here is an example ** .gitignore** file:
45
+
46
+ ```
47
+ # Created by https://www.toptal.com/developers/gitignore/api/python,windows,osx
48
+ # Edit at https://www.toptal.com/developers/gitignore?templates=python,windows,osx
49
+
50
+ ### OSX ###
51
+
52
+ # General
53
+ .DS_Store
54
+ .AppleDouble
55
+ .LSOverride
56
+
57
+ # Icon must end with two \r
58
+ Icon
59
+
60
+
61
+ # Thumbnails
62
+ ._*
63
+
64
+ # Files that might appear in the root of a volume
65
+ .DocumentRevisions-V100
66
+ .fseventsd
67
+ .Spotlight-V100
68
+ .TemporaryItems
69
+ .Trashes
70
+ .VolumeIcon.icns
71
+ .com.apple.timemachine.donotpresent
72
+
73
+ # Directories potentially created on remote AFP share
74
+ .AppleDB
75
+ .AppleDesktop
76
+ Network Trash Folder
77
+ Temporary Items
78
+ .apdisk
79
+
80
+ ### Python ###
81
+
82
+ # Byte-compiled / optimized / DLL files
83
+ __pycache__/
84
+ *.py[cod]
85
+ *$py.class
86
+
87
+ # C extensions
88
+ *.so
89
+
90
+ # Distribution / packaging
91
+ .Python
92
+ build/
93
+ develop-eggs/
94
+ dist/
95
+ downloads/
96
+ eggs/
97
+ .eggs/
98
+ lib/
99
+ lib64/
100
+ parts/
101
+ sdist/
102
+ var/
103
+ wheels/
104
+ share/python-wheels/
105
+ *.egg-info/
106
+ .installed.cfg
107
+ *.egg
108
+ MANIFEST
109
+
110
+ # PyInstaller
111
+ # Usually these files are written by a python script from a template
112
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
113
+ *.manifest
114
+ *.spec
115
+
116
+ # Installer logs
117
+ pip-log.txt
118
+ pip-delete-this-directory.txt
119
+
120
+ # Unit test / coverage reports
121
+ htmlcov/
122
+ .tox/
123
+ .nox/
124
+ .coverage
125
+ .coverage.*
126
+ .cache
127
+ nosetests.xml
128
+ coverage.xml
129
+ *.cover
130
+ *.py,cover
131
+ .hypothesis/
132
+ .pytest_cache/
133
+ cover/
134
+
135
+ # Translations
136
+ *.mo
137
+ *.pot
138
+
139
+ # Django stuff:
140
+ *.log
141
+ local_settings.py
142
+ db.sqlite3
143
+ db.sqlite3-journal
144
+
145
+ # Flask stuff:
146
+ instance/
147
+ .webassets-cache
148
+
149
+ # Scrapy stuff:
150
+ .scrapy
151
+
152
+ # Sphinx documentation
153
+ docs/_build/
154
+
155
+
156
+ # PyBuilder
157
+ .pybuilder/
158
+ target/
159
+
160
+ # Jupyter Notebook
161
+ .ipynb_checkpoints
162
+
163
+ # IPython
164
+ profile_default/
165
+ ipython_config.py
166
+
167
+ # pyenv
168
+ # For a library or package, you might want to ignore these files since the code is
169
+ # intended to run in multiple environments; otherwise, check them in:
170
+ # .python-version
171
+
172
+ # pipenv
173
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
174
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
175
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
176
+ # install all needed dependencies.
177
+ #Pipfile.lock
178
+
179
+
180
+ # poetry
181
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
182
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
183
+ # commonly ignored for libraries.
184
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
185
+ #poetry.lock
186
+
187
+
188
+
189
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
190
+ __pypackages__/
191
+
192
+ # Celery stuff
193
+ celerybeat-schedule
194
+ celerybeat.pid
195
+
196
+ # SageMath parsed files
197
+ *.sage.py
198
+
199
+ # Environments
200
+ .env
201
+ .venv
202
+ env/
203
+ venv/
204
+ ENV/
205
+ env.bak/
206
+ venv.bak/
207
+
208
+ # Spyder project settings
209
+ .spyderproject
210
+ .spyproject
211
+
212
+ # Rope project settings
213
+ .ropeproject
214
+
215
+ # mkdocs documentation
216
+ /site
217
+
218
+ # mypy
219
+ .mypy_cache/
220
+ .dmypy.json
221
+ dmypy.json
222
+
223
+ # Pyre type checker
224
+ .pyre/
225
+
226
+ # pytype static type analyzer
227
+ .pytype/
228
+
229
+ # Cython debug symbols
230
+ cython_debug/
231
+
232
+ # PyCharm
233
+ # JetBrains specific template is maintainted in a separate JetBrains.gitignore that can
234
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
235
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
236
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
237
+ #.idea/
238
+
239
+
240
+
241
+ ### Windows ###
242
+
243
+ # Windows thumbnail cache files
244
+ Thumbs.db
245
+ Thumbs.db:encryptable
246
+ ehthumbs.db
247
+ ehthumbs_vista.db
248
+
249
+ # Dump file
250
+ *.stackdump
251
+
252
+ # Folder config file
253
+ [Dd]esktop.ini
254
+
255
+ # Recycle Bin used on file shares
256
+ $RECYCLE.BIN/
257
+
258
+ # Windows Installer files
259
+ *.cab
260
+ *.msi
261
+ *.msix
262
+ *.msm
263
+ *.msp
264
+
265
+ # Windows shortcuts
266
+ *.lnk
267
+
268
+ # End of https://www.toptal.com/developers/gitignore/api/python,windows,osx
269
+ ```
270
+
44
271
45
272
## Troubleshooting
46
273
0 commit comments