git解析日志常用命令


git diff --name-only ORIG_HEAD
獲取變更列表

git log -p
查看每個提交引入的實際更改。

git log --oneline --decorate
查看日志列表

git diff
每次提交時顯示差異變化

git diff --stat
每次提交時顯示差異變化列表

git log -p
查看每個提交引入的實際更改。

git shortlog
按作者對每個提交進行分組,並顯示每個提交消息的第一行。按作者名稱排序輸出。

git shortlog -n
按每位作者的提交次數排序分組輸出。

繪制表示提交歷史記錄的分支結構的ASCII圖
git log --graph --oneline --decorate

自定義格式
git log --pretty=format:"%cn committed %h on %cd"

查看某個提交
git show 4d1ec802c54569eee272e2b00d79949d8cc4305e

延伸閱讀

https://www.atlassian.com/git/tutorials/git-log


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM