比较修改内容
========
命令
- git diff 比较修改内容
- git diff --cached 添加到索引区后比较
代码
# 编辑 index.html
nano index.html
# 查看修改
git diff
# 加入索引区
git add
# 查看修改 无效
git diff
# 用--cached 在索引区
git diff --cached
========
# 编辑 index.html
nano index.html
# 查看修改
git diff
# 加入索引区
git add
# 查看修改 无效
git diff
# 用--cached 在索引区
git diff --cached
本文标题:Git 07比较修改内容(diff)
本文链接:https://www.haomeiwen.com/subject/naijqqtx.html
网友评论