git commit 提交时没有添加 -m参数提示下面的信息
Aborting commit due to empty commit message.
解决: 1. 增加-m参数 git commit -m "注释" 2. 配置编辑器 # /bin/mvim 为你的编辑器 git config --global core.editor "/bin/mvim -f" 如果是vim编辑器写完注释后:wq保存退出;如果没有保存成功会提示上面的错误信息。
windows下git add 时提示warning: LF will be replaced by CRLF
解决办法:git config –global core.autocrlf false