Pretty git branch graphs

前端 未结 30 2674
情话喂你
情话喂你 2020-11-22 01:34

I\'ve seen some books and articles have some really pretty looking graphs of git branches and commits. How can I make high-quality printable images of git history?

30条回答
  •  情书的邮戳
    2020-11-22 02:13

    For more detailed textual output, please try:

    git log --graph --date-order -C -M --pretty=format:"<%h> %ad [%an] %Cgreen%d%Creset %s" --all --date=short
    

    You can write alias in $HOME/.gitconfig

    [alias]
        graph = log --graph --date-order -C -M --pretty=format:\"<%h> %ad [%an] %Cgreen%d%Creset %s\" --all --date=short
    

提交回复
热议问题