配置行尾符
配置仓库的行尾符。
- 使用
git config core.eol [lf | crlf]来配置行尾符。 lf表示UNIX行尾符(\n),而crlf表示DOS行尾符(\r\n)。
git config core.eol [lf | crlf]
# 示例
git config core.eol lf # 配置为使用UNIX行尾符
配置仓库的行尾符。
git config core.eol [lf | crlf] 来配置行尾符。lf 表示UNIX行尾符(\n),而 crlf 表示DOS行尾符(\r\n)。git config core.eol [lf | crlf]
# 示例
git config core.eol lf # 配置为使用UNIX行尾符