$ git diff warning: LF will be replaced by CRLF in package.json. The file will have its original line endings in your working directory diff --git a/package.json b/package.json index 657c96c..59c4251 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "private": true, "hexo": { - "version": "3.7.1" + "version": "3.8.0" }, "dependencies": { "hexo": "^3.7.0",
显示暂存区和上一个commit的差异
1
$ git diff --cached [file]
显示工作区与当前分支最新commit之间的差异
1
$ git diff HEAD
显示结果
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
$ git diff HEAD warning: LF will be replaced by CRLF in package.json. The file will have its original line endings in your working directory diff --git a/package.json b/package.json index 657c96c..59c4251 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "private": true, "hexo": { - "version": "3.7.1" + "version": "3.8.0" }, "dependencies": { "hexo": "^3.7.0",