Genellikle kullanırım
git log --graph --full-history --all --pretty=format:"%h%x09%d%x20%s"
Renklerle (kabuğunuz Bash ise):
git log --graph --full-history --all --color \
--pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"
Bu, aşağıdaki gibi metin tabanlı gösterim yazdırır:
* 040cc7c (HEAD, master) Manual is NOT built by default
* a29ceb7 Removed offensive binary file that was compiled on my machine and was hence incompatible with other machines.
| * 901c7dd (cvc3) cvc3 now configured before building
| * d9e8b5e More sane Yices SMT solver caller
| | * 5b98a10 (nullvars) All uninitialized variables get zero inits
| |/
| * 1cad874 CFLAGS for cvc3 to work successfully
| * 1579581 Merge branch 'llvm-inv' into cvc3
| |\
| | * a9a246b nostaticalias option
| | * 73b91cc Comment about aliases.
| | * 001b20a Prints number of iteration and node.
| |/
|/|
| * 39d2638 Included header files to cvc3 sources
| * 266023b Added cvc3 to blast infrastructure.
| * ac9eb10 Initial sources of cvc3-1.5
|/
* d642f88 Option -aliasstat, by default stats are suppressed
(Sadece kullanabilirsiniz git log --format=oneline, ancak taahhüt mesajlarını daha az IMHO gibi görünen sayılara bağlayacaktır).
Bu komut için bir kısayol yapmak üzere ~/.gitconfigdosyanızı düzenlemek isteyebilirsiniz :
[alias]
gr = log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m"
Bununla birlikte, yorumlarda Sodel Vurgulu notlar gibi, bu uzun biçimlendirme komutunu ezberlemek zordur. Genellikle, ~/.gitconfigdosyaya koyabileceğiniz için bu bir sorun değildir . Ancak, bazen yapılandırma dosyasını değiştiremediğiniz bir uzak makinede oturum açmanız gerekiyorsa, yazmak için daha basit ama daha hızlı bir sürüm kullanabilirsiniz:
git log --graph --oneline