我们可以使用git show命令查看git中各种对象的信息
查看某次提交的信息,git show 后边跟commit id
$ git show f42e369bde1b19e256da Author: shifou <openness666@gmail.com> Date: Fri Aug 21 08:34:02 2020 +0800 新增一行div diff --git a/index.html b/index.html index 5339a95..7f09218 100644 --- a/index.html +++ b/index.html @@ -5,5 +5,6 @@ <title>Git-师否</title> </head> <body> + <div>我是新增的一行</div> </body> </html> (END)
等后边学习了tag,可以使用git show查看tag的信息
最后更新于4年前
这有帮助吗?