Skip to content

fix(docker): add .gitattributes to force LF for shell scripts - #671

Open
ktz03 wants to merge 1 commit into
netease-youdao:qanything-v2from
ktz03:fix/gitattributes-shell-lf
Open

fix(docker): add .gitattributes to force LF for shell scripts#671
ktz03 wants to merge 1 commit into
netease-youdao:qanything-v2from
ktz03:fix/gitattributes-shell-lf

Conversation

@ktz03

@ktz03 ktz03 commented Aug 16, 2026

Copy link
Copy Markdown

Summary

  • Add root .gitattributes forcing LF for shell/docker files so Windows clones do not break Linux container entrypoints with CRLF.

Fixes #664

Testing plan

  • Fresh clone on Windows; shell scripts are LF.
  • Docker start path no longer fails due to \r in scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] <title>在Windows上按照教程中的方式启动docker,最终 mysql-container-local 这个容器会报错。

1 participant