ฉันชอบที่git log
จะทำ:
git log --graph --oneline --branches
(เช่นเดียวกับ - ทั้งหมดสำหรับการดูสาขาระยะไกลเช่นกัน)
ใช้งานได้กับ Git รุ่นล่าสุด: เปิดตัวตั้งแต่1.6.3 (พฤ., 7 พฤษภาคม 2009 )
" --pretty=<style>
ตัวเลือก" ครอบครัวบันทึกของคำสั่งนี้สามารถสะกดคำว่า " --format=<style>
"
นอกจากนี้ยังเป็นสั้นมือ--format=%formatstring
--pretty=tformat:%formatstring
" --oneline
" เป็นคำพ้องความหมายสำหรับ " --pretty=oneline --abbrev-commit
"
PS D:\git\tests\finalRepo> git log --graph --oneline --branches --all
* 4919b68 a second bug10 fix
* 3469e13 a first bug10 fix
* dbcc7aa a first legacy evolution
| * 55aac85 another main evol
| | * 47e6ee1 a second bug10 fix
| | * 8183707 a first bug10 fix
| |/
| * e727105 a second evol for 2.0
| * 473d44e a main evol
|/
* b68c1f5 first evol, for making 1.0
คุณยังสามารถ จำกัด ช่วงเวลาของการแสดงผลบันทึก (จำนวนการกระทำ):
PS D:\git\tests\finalRepo> git log --graph --oneline --branches --all -5
* 4919b68 a second bug10 fix
* 3469e13 a first bug10 fix
* dbcc7aa a first legacy evolution
| * 55aac85 another main evol
| | * 47e6ee1 a second bug10 fix
(แสดงเฉพาะการกระทำ 5 ครั้งล่าสุด)
สิ่งที่ฉันไม่ชอบเกี่ยวกับโซลูชันที่เลือกในปัจจุบันคือ:
git log --graph
มันแสดงข้อมูลมากเกินไป (เมื่อฉันต้องการดูข้อมูลสรุปแบบย่อเท่านั้น):
PS D:\git\tests\finalRepo> git log --graph
* commit 4919b681db93df82ead7ba6190eca6a49a9d82e7
| Author: VonC <vonc@laposte.net>
| Date: Sat Nov 14 13:42:20 2009 +0100
|
| a second bug10 fix
|
* commit 3469e13f8d0fadeac5fcb6f388aca69497fd08a9
| Author: VonC <vonc@laposte.net>
| Date: Sat Nov 14 13:41:50 2009 +0100
|
| a first bug10 fix
|
gitk
เยี่ยมมาก แต่บังคับให้ฉันออกจากเซสชั่นเชลล์ไปยังหน้าต่างอื่นในขณะที่การแสดง n ล่าสุดที่ทำเสร็จอย่างรวดเร็วมักจะเพียงพอ