Skip to content

Commit 9fb7994

Browse files
committed
fix issues2; update diff command
1 parent fc06acd commit 9fb7994

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Git是一个“分布式版本管理工具”,简单的理解版本管理工
8080
* [展示任意分支某一文件的内容](#展示任意分支某一文件的内容)
8181
* [clone下来指定的单一分支](#clone下来指定的单一分支)
8282
* [创建并切换到该分支](#创建并切换到该分支)
83-
* [关闭Ignore文件的功能](#关闭Ignore文件的功能)
83+
* [忽略文件的权限变化](#忽略文件的权限变化)
8484
* [展示本地所有的分支的commit](#展示本地所有的分支的commit)
8585
* [在commit log中查找相关内容](#在commit-log中查找相关内容)
8686
* [把暂存区的指定file放到工作区中](#把暂存区的指定file放到工作区中)
@@ -111,6 +111,11 @@ git update-ref -d HEAD
111111
git diff
112112
```
113113

114+
还可以展示本地仓库中任意两个commit之间的文件变动:
115+
```sh
116+
git diff <commit-id> <commit-id>
117+
```
118+
114119
## 展示暂存区和最近版本的不同
115120
输出**暂存区**和本地最近的版本(commit)的different(不同)。
116121
```sh
@@ -453,7 +458,8 @@ git clone -b <branch-name> --single-branch https://github.com/user/repo.git
453458
git checkout -b <branch-name>
454459
```
455460

456-
## 关闭Ignore文件的功能
461+
## 忽略文件的权限变化
462+
不再将文件的权限变化视作改动
457463
```sh
458464
git config core.fileMode false
459465
```

0 commit comments

Comments
 (0)