gitk官方介绍:
https://git-scm.com/docs/gitk
概念:显示存储库或选定提交点的更改信息。这包括可视化commit图,显示与每个commit相关的信息,以及每个修订的树中的文件。
使用git客户端,试图理解git世界中checkout,commit,branch,remote,rebase等术语
在window客户端进入到git仓库,使用命令打开gitk工具窗:
gitk --all
说明信息:
新建dev分支,F5刷新gitk工具,视图刷新,我们可以进行一些git常规操作,去F5刷新对应gitk视图,进行可视化的查看git status
查看gitk,出现dev黄色提交点,说当前库指向了新的分支ddev。
切回去master库,git checkout master
给test_commit2 创建一个标签 2.31
摘自:https://git-scm.com/docs/gitk
–all
Show all refs (branches, tags, etc.).
–branches[=]
–tags[=]
–remotes[=]
Pretend as if all the branches (tags, remote branches, resp.) are listed on the command line as . If is given, limit refs to ones matching given shell glob. If pattern lacks ?, , or [, / at the end is implied.
–since=
Show commits more recent than a specific date.
–until=
Show commits older than a specific date.
–date-order
Sort commits by date when possible.
–merge
After an attempt to merge stops with conflicts, show the commits on the history between two branches (i.e. the HEAD and the MERGE_HEAD) that modify the conflicted files and do not exist on all the heads being merged.
–left-right
Mark which side of a symmetric difference a commit is reachable from. Commits from the left side are prefixed with a < symbol and those from the right with a > symbol.
–full-history
When filtering history with …, does not prune some history. (See “History simplification” in git-log[1] for a more detailed explanation.)
–simplify-merges
Additional option to --full-history to remove some needless merges from the resulting history, as there are no selected commits contributing to this merge. (See “History simplification” in git-log[1] for a more detailed explanation.)
–ancestry-path
When given a range of commits to display (e.g. commit1…commit2 or commit2 ^commit1), only display commits that exist directly on the ancestry chain between the commit1 and commit2, i.e. commits that are both descendants of commit1, and ancestors of commit2. (See “History simplification” in git-log[1] for a more detailed explanation.)
-L,:
-L::
Trace the evolution of the line range given by “,” (or the function name regex ) within the . You may not give any pathspec limiters. This is currently limited to a walk starting from a single revision, i.e., you may only give zero or one positive revision arguments. You can specify this option more than once.