Ignore .idea and the deploy kit's secrets, keep shell scripts LF

.gitignore adds .idea/, data/, deploy/release.env and deploy/backups/ next
to roledesk.db* and .scratch/; config.yaml stays committed as the default.
.gitattributes is the boilerplate's: deploy/ and every .sh check out with
LF, since a CRLF shell script fails on the server's first line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-23 12:52:15 +02:00
1 parent 3c1b5c4309
commit ba96b1afad
2 files changed
+22 -2

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
# Line endings, for the files that leave this machine.
#
# Everything here ends up on a Linux box — scp'd to the server, or read by
# `docker build` from a tar. A shell script with CRLF in it fails on the first
# line with `\r: command not found`, which is a mystifying way to learn about
# Git for Windows' checkout conversion. Nothing else in the repo is touched:
# no `* text=auto`, because renormalising every file is not a thing to do
# quietly while other work is in flight.
*.sh text eol=lf
# The Dockerfile and its ignore file live under deploy/ too, so one rule covers
# everything that ships: the scripts, the server files, and the image recipe.
# PowerShell reads LF happily; what it cannot read is a non-ASCII byte, which
# is a different rule and lives in `tests/test_packaging.py`.
deploy/** text eol=lf
+8 -2
View File
@@ -5,11 +5,17 @@ __pycache__/
build/
dist/
# Environments
# Environments and editors
.venv/
.idea/
# Local state
# Local state. config.yaml is committed on purpose: it is the default.
roledesk.db*
data/
# Release secrets and the database copies deploy/db.ps1 pulls down.
deploy/release.env
deploy/backups/
# Tooling caches
.pytest_cache/