在使用git的過程中,我們經常需要查看某次commit修改了哪些內容,與之相關的命令就是:
git log
git show
首先,需要通過git log打印所有commit hashID,之后的git show都是基於commit hashID輸出的。
1.查看最新的commit
git show
2.查看指定commit hashID的所有修改:
git show commitId
---------------------
在使用git的過程中,我們經常需要查看某次commit修改了哪些內容,與之相關的命令就是:
git log
git show
首先,需要通過git log打印所有commit hashID,之后的git show都是基於commit hashID輸出的。
1.查看最新的commit
git show
2.查看指定commit hashID的所有修改:
git show commitId
---------------------
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。