差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版 前次修改 | |||
tech:git-graph [2022/05/11 02:04] – [使用方式] jonathan | tech:git-graph [2022/05/11 02:17] (目前版本) – [使用方式] jonathan | ||
---|---|---|---|
行 16: | 行 16: | ||
git clone https:// | git clone https:// | ||
</ | </ | ||
+ | * 看 git-big-picture 命令列參數 <cli> | ||
+ | $ git-big-picture -h | ||
+ | usage: git-big-picture OPTIONS [REPOSITORY] | ||
+ | |||
+ | Visualize Git repositories | ||
+ | |||
+ | positional arguments: | ||
+ | REPOSITORY | ||
+ | (default: current directory) | ||
+ | |||
+ | optional arguments: | ||
+ | -h, --help | ||
+ | --version | ||
+ | --pstats FILE run cProfile profiler writing pstats output to FILE | ||
+ | -d, --debug | ||
+ | |||
+ | output options: | ||
+ | Options to control output and format | ||
+ | |||
+ | -f FMT, --format FMT set output format [svg, png, ps, pdf, ...] | ||
+ | --history-direction {downwards, | ||
+ | enforce a specific direction of history on Graphviz | ||
+ | (default: rightwards) | ||
+ | --simplify | ||
+ | filter " | ||
+ | -g, --graphviz | ||
+ | -G, --no-graphviz | ||
+ | -p, --processed | ||
+ | -P, --no-processed | ||
+ | -v CMD, --viewer CMD write image to tempfile and start specified viewer | ||
+ | -V, --no-viewer | ||
+ | -o FILE, --outfile FILE | ||
+ | write image to specified file | ||
+ | -O, --no-outfile | ||
+ | -w SECONDS, --wait SECONDS | ||
+ | wait for SECONDS seconds before deleting the temporary | ||
+ | file that is opened using the viewer command (default: | ||
+ | 2.0 seconds); this helps e.g. with viewer commands that | ||
+ | tell other running processes to open that file on their | ||
+ | behalf, to then shut themselves down | ||
+ | |||
+ | filter options: | ||
+ | Options to control commit/ref selection | ||
+ | |||
+ | -a, --all | ||
+ | -b, --branches | ||
+ | -B, --no-branches | ||
+ | -t, --tags | ||
+ | -T, --no-tags | ||
+ | -r, --roots | ||
+ | -R, --no-roots | ||
+ | -m, --merges | ||
+ | -M, --no-merges | ||
+ | -i, --bifurcations | ||
+ | commit that is a parent to more than one other commits, | ||
+ | i.e. it marks the point where one or more new branches | ||
+ | came to life; bifurcation commits can also be thought of | ||
+ | as the counterpart of merge commits | ||
+ | -I, --no-bifurcations | ||
+ | do not include bifurcation commits | ||
+ | -c, --commit-messages | ||
+ | include commit messages on labels | ||
+ | -C, --no-commit-messages | ||
+ | do not include commit messages on labels | ||
+ | |||
+ | git-big-picture is software libre, licensed under the GPL v3 or later license. | ||
+ | Please report bugs at https:// | ||
+ | </ | ||
* 產生簡單的 tag 分支圖(svg 格式) <cli> | * 產生簡單的 tag 分支圖(svg 格式) <cli> | ||
git-big-picture --simplify -f svg -o our-project8.svg --history-direction upwards devops-system/ | git-big-picture --simplify -f svg -o our-project8.svg --history-direction upwards devops-system/ | ||
</ | </ | ||
- | * 產生完整的 commit 分支圖(svg 格式) < | + | * 產生完整的 commit 分支圖(pdf 格式) < |
- | git-big-picture -a -f svg -o our-project5.svg --history-direction upwards devops-system/ | + | git-big-picture -a -f pdf -o our-project5.pdf --history-direction upwards devops-system/ |
- | </ | + | </ |
{{tag> | {{tag> |