這是本文件的舊版!


由 git repo 產生 git graph

想要產生 git repo 內各分支與 commit 的圖形, 找到一個簡單的產生工具 git-big-picture

  • 安裝環境 : Ubuntu 20.04
    • Python >=3.7
    • Git (1.7.1 works)
    • Graphviz utility
  • 安裝套件

    sudo apt install git graphviz
    sudo pip install git-big-picture

  • 先將一個 git repo clone 下來 Exp. https://github.com/iii-org/devops-system

    git clone https://github.com/iii-org/devops-system.git

  • 產生簡單的 tag 分支圖(svg 格式)

    git-big-picture --simplify -f svg -o our-project8.svg --history-direction upwards devops-system/

    點開看結果

  • tech/git-graph.1652205633.txt.gz
  • 上一次變更: 2022/05/11 02:00
  • jonathan