hexo-problems

hexo

在执行命令的过程刚发现的错误警告

1、

1
$ hexo d

运行时出现的警告

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
INFO Copying files from extend dirs...
warning: LF will be replaced by CRLF in 2017/09/01/hello-First/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/09/01/hello-world/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/09/03/Vue-second/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/09/03/vue-first/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/09/19/bubble/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/09/19/default/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/09/19/todolist/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/09/20/keyboard/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/09/20/v-bindProperty/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/09/23/classAndStyle/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/09/23/model/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/09/25/filt/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/09/27/interaction/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/09/30/ex-teraction/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/2017/09/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/2017/09/page/2/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/2017/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/2017/page/2/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/page/2/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in categories/class和style的讲解/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in categories/hexo/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in categories/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in categories/vue-js/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in categories/举出一个交互的例子/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in categories/交互的一些讲解/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in categories/关于键盘事件的问题/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in categories/模板的绑定/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in categories/系统默认行为的一些问题/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in categories/阻止冒泡的问题/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/fontawesome/font-awesome-ie7.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/fontawesome/font-awesome-ie7.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/fontawesome/font-awesome.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/fontawesome/font-awesome.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/plugin/animate.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/plugin/hover.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/style.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in js/script.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in page/2/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugin/bganimation/bg.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugin/fancybox/helpers/jquery.fancybox-buttons.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugin/fancybox/helpers/jquery.fancybox-buttons.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugin/fancybox/helpers/jquery.fancybox-media.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugin/fancybox/helpers/jquery.fancybox-thumbs.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugin/fancybox/helpers/jquery.fancybox-thumbs.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugin/fancybox/jquery.fancybox.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugin/fancybox/jquery.fancybox.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugin/fancybox/jquery.fancybox.pack.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugin/galmenu/GalMenu.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in plugin/galmenu/GalMenu.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tags/css/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tags/hexo安装和使用/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tags/html/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tags/html/page/2/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tags/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tags/javascript/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tags/php/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tags/vue-js/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tags/vue-js基础讲/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tags/vue-js常用命令/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tags/vue/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in tags/vuejs/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in 2017/10/07/vue-problems/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/2017/10/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in categories/vue运行过程中遇到的一些问题/index.html.
The file will have its original line endings in your working directory.
[master 16c2a93] Site updated: 2017-10-07 19:38:41
47 files changed, 1442 insertions(+), 357 deletions(-)
create mode 100644 2017/10/07/vue-problems/index.html
create mode 100644 archives/2017/10/index.html
create mode 100644 "categories/vue\350\277\220\350\241\214\350\277\207\347\250\213\344\270\255\351\201\207\345\210\260\347\232\204\344\270\200\344\272\233\351\227\256\351\242\230/index.html"
Branch master set up to track remote branch master from https://github.com/shangrila-xiu/shangrila-xiu.github.io.git.
To https://github.com/shangrila-xiu/shangrila-xiu.github.io.git
4f60a26..16c2a93 HEAD -> master
INFO Deploy done: git

对于它的解决办法有两种:一、当做没有发生,在网上查看,也没有问题发生,写的内容已经成功的上传了。

二、打开命令行,设置就可以了

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
最近在使用GitHub,发现不时没有修改过的文件要提交,对比发现文件全部修改,但找不到不一样的地方。
想可能是换行符的问题,因为Windows和Linux的换行符不一样,而Git默认应该是Linux的,今天Bing了下,果然是这个问题。
CR回车 LF换行Windows/Dos CRLF \r\n
Linux/Unix LF \n
MacOS CR \r
解决方法是:打开命令行,进行设置,如果你是在Windows下开发,建议设置autocrlf为true。
2014/08/20 补充:如果你文件编码是UTF8并且包含中文文字,那还是把autocrlf设置为false,并且把所有文件转换为Linux编码(即LF\n),开启safecrlf检查。
一、AutoCRLF
#提交时转换为LF,检出时转换为CRLF
git config --global core.autocrlf true
#提交时转换为LF,检出时不转换
git config --global core.autocrlf input
#提交检出均不转换
git config --global core.autocrlf false
二、SafeCRLF
#拒绝提交包含混合换行符的文件
git config --global core.safecrlf true
#允许提交包含混合换行符的文件
git config --global core.safecrlf false
#提交包含混合换行符的文件时给出警告
git config --global core.safecrlf warn