学以致用

focus on Python , C++, and some interest in Go and R

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

在配置git server的时候,为达到同时妥善的支持windows和linux平台,需要配置core.autocrlf
具体设置如下:
core.autocrlf=input

core.autocrlf具体解释如下:

core.autocrlf

Setting this variable to "true" is almost the same as setting the text attribute to "auto" on all files except that text files are not guaranteed to be normalized: files that contain CRLF in the repository will not be touched. Use this setting if you want to have CRLF line endings in your working directory even though the repository does not have normalized line endings. This variable can be set to input, in which case no output conversion is performed.

posted on 2012-05-07 09:06  Jerry.Kwan  阅读(904)  评论(0编辑  收藏  举报