# ---------------------------------------------------------------- 统一换行与二进制 # 目标平台是 Linux(RK3576 / Jetson),开发机是 Windows:库里一律存 LF, # 避免全仓 diff 被行尾污染;确有需要的格式(bat/cmd/ps1)在 Windows 上检出为 CRLF。 * text=auto eol=lf *.py text eol=lf *.pyi text eol=lf *.c text eol=lf *.cc text eol=lf *.cpp text eol=lf *.h text eol=lf *.hpp text eol=lf *.cu text eol=lf *.sh text eol=lf *.cmake text eol=lf CMakeLists.txt text eol=lf *.json text eol=lf *.jsonl text eol=lf *.yaml text eol=lf *.yml text eol=lf *.md text eol=lf *.txt text eol=lf *.txt.in text eol=lf *.gitignore text eol=lf .gitattributes text eol=lf *.service text eol=lf *.conf text eol=lf *.bat text eol=crlf *.cmd text eol=crlf *.ps1 text eol=crlf # 二进制:禁止行尾转换与文本 diff *.png binary *.jpg binary *.jpeg binary *.bmp binary *.pgm binary *.mp4 binary *.avi binary *.h264 binary *.onnx binary *.rknn binary *.engine binary *.plan binary *.pt binary *.calib binary *.docx binary *.xlsx binary *.pdf binary *.zip binary *.7z binary # 依赖锁文件/生成物不参与 diff 合并 package-lock.json merge=binary