File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ Git是一个“分布式版本管理工具”,简单的理解版本管理工
80
80
* [ 展示任意分支某一文件的内容] ( #展示任意分支某一文件的内容 )
81
81
* [ clone下来指定的单一分支] ( #clone下来指定的单一分支 )
82
82
* [ 创建并切换到该分支] ( #创建并切换到该分支 )
83
- * [ 关闭Ignore文件的功能 ] ( #关闭Ignore文件的功能 )
83
+ * [ 忽略文件的权限变化 ] ( #忽略文件的权限变化 )
84
84
* [ 展示本地所有的分支的commit] ( #展示本地所有的分支的commit )
85
85
* [ 在commit log中查找相关内容] ( #在commit-log中查找相关内容 )
86
86
* [ 把暂存区的指定file放到工作区中] ( #把暂存区的指定file放到工作区中 )
@@ -111,6 +111,11 @@ git update-ref -d HEAD
111
111
git diff
112
112
```
113
113
114
+ 还可以展示本地仓库中任意两个commit之间的文件变动:
115
+ ``` sh
116
+ git diff < commit-id> < commit-id>
117
+ ```
118
+
114
119
## 展示暂存区和最近版本的不同
115
120
输出** 暂存区** 和本地最近的版本(commit)的different(不同)。
116
121
``` sh
@@ -453,7 +458,8 @@ git clone -b <branch-name> --single-branch https://github.com/user/repo.git
453
458
git checkout -b < branch-name>
454
459
```
455
460
456
- ## 关闭Ignore文件的功能
461
+ ## 忽略文件的权限变化
462
+ 不再将文件的权限变化视作改动
457
463
``` sh
458
464
git config core.fileMode false
459
465
```
You can’t perform that action at this time.
0 commit comments