From 078b5ccaff66c53405c6855b4e5140176b252d0c Mon Sep 17 00:00:00 2001 From: dearblue Date: Sun, 17 Sep 2023 13:52:48 +0900 Subject: [PATCH] Add `.gitattributes` for newline code normalization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit References: - [Git] リポジトリで改行コードを正規化する https://zenn.dev/murnana/articles/eol-and-gitattributes - 行終端を処理するようGitを設定する - GitHub Docs https://docs.github.com/ja/get-started/getting-started-with-git/configuring-git-to-handle-line-endings --- .gitattributes | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..0f776312d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +* text=auto eol=lf +*.bat text eol=crlf +*.cmd text eol=crlf +*.png binary