Git 07比较修改内容(diff)

比较修改内容

========

命令

  • git diff 比较修改内容
  • git diff --cached 添加到索引区后比较

代码

# 编辑 index.html
nano index.html
# 查看修改
git diff
# 加入索引区
git add
# 查看修改 无效
git diff
# 用--cached 在索引区
git diff --cached

你可能感兴趣的:(Git 07比较修改内容(diff))