我在用hexo 配置github仓库的时候:
使用git add .添加到暂存区去的时候总是出现
warning: LF will be replaced by CRLF in 2015/05/14/hello-world/index.html.
The file will have its original line endings in your working directory.
请问要怎么解决?
这时候好像commit不进记录记录。然后就发布不了。
我尝试了google没有找到我想要的答案,求指教
新手勿喷啊
|  |      1Septembers      2015-05-14 12:43:35 +08:00  1 git push | 
|  |      2zszdevelop OP 我git push上去的时候就会没有共同之处。我觉得就是add 。那没有传上去吧。 No refs in common and none specified; doing nothing. Perhaps you should specify a branch such as 'master'. error: failed to push some refs to '[email protected]:zszdevelop/zszdevelop.github. io.git' 应该要倒回去解决 The file will have its original line endings in your working directory. | 
|      3comicfans44      2015-05-14 13:07:12 +08:00  1 LF CRLF这个问题应该是换行符引起的,大意是: 虽然文件的换行符号变了,但是除此之外文件内容没有任何变化,所以没有任何提交。 可以参考下http://git-scm.com/book/zh/v1/自定义-Git-配置-Git里面crlf的部分,看看如何处理符合你的要求 | 
|  |      4Tiande PRO  1 ``` hexo clean #先清public文件夹 hexo d -g #重新部署(并生成) ``` | 
|      5yangtukun1412      2015-05-14 13:24:25 +08:00  1 这个warning只是提示你在windows下换行符会被统一换成 CRLF 吧,不影响提交才对。 git add 后要 先 commit 才能 push 的。 | 
|  |      6zszdevelop OP 谢谢大家的回答,很有帮助。 | 
|  |      7forcecharlie      2015-05-14 13:35:32 +08:00 设置一下 git config --global core.autocrlf false | 
|  |      8Tiande PRO github 仓库的设置是在 config 文件里面, 直接用 hexo 的命令就可以完成部署, 为什么还要手动 git add/commit? | 
|  |      9zszdevelop OP |