Skip to content

跨平台开发源码文件换行问题 #13

@Dream4ever

Description

@Dream4ever

需求描述

执行 git add 时,提示 git warning: LF will be replaced by CRLF

这个问题是 Windows 和 Mac 下换行方式不同所导致的。

方案调研

调研过程

Google 上面的提示文字,有两个有价值的链接:

入选方案

应用过程

参考上面链接里的内容,执行了下面的命令:

$ git config --global core.autocrlf input

先这样用着,后面再看看结果如何。

要点总结

无。

Metadata

Metadata

Assignees

No one assigned

    Labels

    SoftwareAbout installation ande usage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions