hash验证和查看 git contains¶ 查看某个hash属于哪个分支 Bashgit branch --contains 3a073e8 # 用正确的前 7 位即可 git show¶ 验证hash是否正确 Bashgit show 3a073e8 # 若能显示提交详情,说明哈希有效