显示某次提交的中修改内容方法:
git show 某次提交生成的哈希值(至少5位)
如果使用提交生成的哈希值前4位会出现如下情况:
weitf@sofia-X8DAL:~/work/project/sofia3gr_custom1/frameworks/base$ git show 7a59
error: short SHA1 7a59 is ambiguous.
error: short SHA1 7a59 is ambiguous.
fatal: ambiguous argument '7a59': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions

本文介绍如何使用Git命令查看特定提交中的更改详情。当尝试使用短版本的提交哈希值时可能会遇到模糊匹配错误,文章提供了避免此类问题的方法。
589

被折叠的 条评论
为什么被折叠?



