简体中文 ▾
Localized versions of git-diff-files manual
Topics ▾
Email
Latest version
▾
git-diff-files last updated in 2.52.0
Changes in the git-diff-files manual
Setup and Config
Getting and Creating Projects
Basic Snapshotting
Branching and Merging
Sharing and Updating Projects
Inspection and Comparison
Patching
Debugging
External Systems
Server Admin
Guides
- gitattributes
- Command-line interface conventions
- Everyday Git
- Frequently Asked Questions (FAQ)
- Glossary
- Hooks
- gitignore
- gitmodules
- Revisions
- Submodules
- Tutorial
- Workflows
- All guides...
Administration
Plumbing Commands
- 2.52.0 2025年11月17日
- 2.51.1 → 2.51.2 no changes
- 2.51.0 2025年08月18日
- 2.48.1 → 2.50.1 no changes
- 2.48.0 2025年01月10日
- 2.46.1 → 2.47.3 no changes
- 2.46.0 2024年07月29日
- 2.45.4 no changes
- 2.45.3 2024年11月26日
- 2.45.1 → 2.45.2 no changes
- 2.45.0 2024年04月29日
- 2.44.1 → 2.44.4 no changes
- 2.44.0 2024年02月23日
- 2.43.1 → 2.43.7 no changes
- 2.43.0 2023年11月20日
- 2.42.2 → 2.42.4 no changes
- 2.42.1 2023年11月02日
- 2.42.0 2023年08月21日
- 2.41.1 → 2.41.3 no changes
- 2.41.0 2023年06月01日
- 2.40.1 → 2.40.4 no changes
- 2.40.0 2023年03月12日
- 2.39.1 → 2.39.5 no changes
- 2.39.0 2022年12月12日
- 2.37.3 → 2.38.5 no changes
- 2.37.2 2022年08月11日
- 2.36.1 → 2.37.1 no changes
- 2.36.0 2022年04月18日
- 2.35.1 → 2.35.8 no changes
- 2.35.0 2022年01月24日
- 2.34.1 → 2.34.8 no changes
- 2.34.0 2021年11月15日
- 2.33.1 → 2.33.8 no changes
- 2.33.0 2021年08月16日
- 2.32.1 → 2.32.7 no changes
- 2.32.0 2021年06月06日
- 2.31.1 → 2.31.8 no changes
- 2.31.0 2021年03月15日
- 2.30.1 → 2.30.9 no changes
- 2.30.0 2020年12月27日
- 2.29.1 → 2.29.3 no changes
- 2.29.0 2020年10月19日
- 2.28.1 no changes
- 2.28.0 2020年07月27日
- 2.25.2 → 2.27.1 no changes
- 2.25.1 2020年02月17日
- 2.25.0 2020年01月13日
- 2.24.1 → 2.24.4 no changes
- 2.24.0 2019年11月04日
- 2.22.1 → 2.23.4 no changes
- 2.22.0 2019年06月07日
- 2.21.1 → 2.21.4 no changes
- 2.21.0 2019年02月24日
- 2.20.1 → 2.20.5 no changes
- 2.20.0 2018年12月09日
- 2.19.1 → 2.19.6 no changes
- 2.19.0 2018年09月10日
- 2.18.1 → 2.18.5 no changes
- 2.18.0 2018年06月21日
- 2.17.1 → 2.17.6 no changes
- 2.17.0 2018年04月02日
- 2.16.6 2019年12月06日
- 2.15.4 2019年12月06日
- 2.14.6 2019年12月06日
- 2.13.7 2018年05月22日
- 2.12.5 2017年09月22日
- 2.11.4 2017年09月22日
- 2.10.5 no changes
- 2.9.5 2017年07月30日
- 2.8.6 2017年07月30日
- 2.7.6 no changes
- 2.6.7 2017年05月05日
- 2.5.6 2017年05月05日
- 2.4.12 2017年05月05日
- 2.3.10 2015年09月28日
- 2.1.4 → 2.2.3 no changes
- 2.0.5 2014年12月17日
名称
git-diff-files - 对比工作区和索引中的文件
概述
git diff-files [-q] [-0|-1|-2|-3|-c|--cc] [<普通差异选项>] [<路径>…]
描述
比较工作区和索引中的文件。 当指定路径时,只比较那些命名的路径。 否则就比较索引中的所有条目。 输出格式与 git diff-index 和 git diff-tree 的相同。
选项
Warning
Missing zh_HANS-CN/diff-options.adoc
See original version for this content.
- -1 --base
- -2 --ours
- -3 --theirs
- -0
-
分别与 "基础" 版本、"我们的分支" 或 "他们的分支" 进行比较。 有了这些选项,合并后的条目的差异就不会显示。
默认是针对我们的分支 (-2) 和干净的解决路径进行差异比对。 可以给出选项 -0 来省略未合并的条目的差异输出,只显示 "Unmerged"。
- -c
- --cc
-
这将比较第二阶段(我们的分支)、第三阶段(他们的分支)和工作区文件,并输出一个综合的差异,类似于 diff-tree 显示带有这些标志的合并提交。
- -q
-
即使对不存在的文件也保持沉默
Warning
Missing zh_HANS-CN/diff-format.adoc
See original version for this content.
GIT
属于 git[1] 文档