Skip to content

Instantly share code, notes, and snippets.

@rmorenobello
Last active June 28, 2022 16:20
Show Gist options
  • Save rmorenobello/4761984001edfe6a508b0d302a39660b to your computer and use it in GitHub Desktop.
Save rmorenobello/4761984001edfe6a508b0d302a39660b to your computer and use it in GitHub Desktop.
Git - python configurations
# Set default behavior to automatically normalize line endings to LF in Git repo.
* text=auto
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
# in Windows via a file share from Linux, the scripts will work.
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
# Force bash scripts to always use LF line endings so that if a repo is accessed
# in Unix via a file share from Windows, the scripts will work.
*.sh text eol=lf
# Para repos de Pentaho Data Integration:
*.kjb text eol=lf
*.ktr text eol=lf
# Environment variables
.env
# virtualenv
venv
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
# Translations
*.mo
*.pot
# Django stuff:
*.log
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Created by https://www.toptal.com/developers/gitignore/api/windows
# Edit at https://www.toptal.com/developers/gitignore?templates=windows
### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk
# End of https://www.toptal.com/developers/gitignore/api/windows
[InternetShortcut]
URL=https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
[InternetShortcut]
URL=https://www.aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git/#normalizing-line-endings-in-git-with-gitattributes
[InternetShortcut]
URL=https://rehansaeed.com/gitattributes-best-practices/
[InternetShortcut]
URL=https://www.atlassian.com/git/tutorials/saving-changes/gitignore
[InternetShortcut]
URL=https://gitea.com/gitea/awesome-gitea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment