warning: in the working copy of 'JavaScript/jsStart/1-1.html', LF will be replac

264 阅读1分钟

使用git将文件上传到暂存区遇到如下提示'warning: in the working copy of 'JavaScript/jsStart/1-1.html', LF will be replaced by CRLF the next '

Administrator@WIN-O379IL963GN MINGW64 ~/Desktop/practise/Learning-notes/JavaScript (main)
$ cd jsStart

Administrator@WIN-O379IL963GN MINGW64 ~/Desktop/practise/Learning-notes/JavaScript/jsStart (main)
$ git add 1-1.html
warning: in the working copy of 'JavaScript/jsStart/1-1.html', LF will be replaced by CRLF the next time Git touches it

Administrator@WIN-O379IL963GN MINGW64 ~/Desktop/practise/Learning-notes/JavaScript/jsStart (main)

这是一个警告错误,其实可以不用管他。

具体参考blog.csdn.net/qq_44858403…