1. 程式人生 > >git 檢視commit提交的內容

git 檢視commit提交的內容

    在使用git的過程中,我們經常需要檢視某次commit修改了哪些內容,與之相關的命令就是:

git log

git show

    首先,需要通過git log列印所有commit hashID,之後的git show都是基於commit hashID輸出的。

1.檢視最新的commit

git show

2.檢視指定commit hashID的所有修改:

git show commitId
---------------------