📌  相关文章
📜  git 查看本地更改 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:56.032000             🧑  作者: Mango

代码示例1
git diff (no parameters)
Print out differences between your working directory and the index.

git diff --cached:
Print out differences between the index and HEAD (current commit).

git diff HEAD:
Print out differences between your working directory and the HEAD.

git diff --name-only
Show only names of changed files.

git diff --name-status
Show only names and status of changed files.

git diff --color-words
Word by word diff instead of line by line.