GITK簡介
gitk - The git repository browser
Displays changes in a repository or a selected set of commits. This includes visualizing
the commit graph, showing information related to each commit, and the files in the trees of
each revision.
Historically, gitk was the first repository browser. It’s written in tcl/tk and started off
in a separate repository but was later merged into the main git repository.
GITK常用選項
-n <number>, --max-count=<number>
Limits the number of commits to show.
--since=<date>
Show commits more recent than a specific date.
--until=<date>
Show commits older than a specific date.
--select-commit=<ref>
Automatically select the specified commit after loading the graph. Default behavior is
equivalent to specifying --select-commit=HEAD.
舉例
gitk v2.6.12.. include/scsi drivers/scsi
Show the changes since version v2.6.12 that changed any file in the include/scsi or
drivers/scsi subdirectories
gitk --since="2 weeks ago" -- gitk
Show the changes during the last two weeks to the file gitk. The "--" is necessary to
avoid confusion with the branch named gitk
gitk --max-count=100 --all -- Makefile
Show at most 100 changes made to the file Makefile. Instead of only looking for changes
in the current branch look in all branches.
GITK界面:
http://lwn.net/Articles/140350/
GitK界面說明參考下圖,看樣子是像windows截下來,無所謂了,內容一樣,詳細介紹可以參考下面這個鏈接
http://lostechies.com/joshuaflanagan/2010/09/03/use-gitk-to-understand-git/
其他git圖形用戶工具
QGit, gitview, tig, smartgit
1) QGit
QGit在啓動的時候可以彈出對話框讓你選擇你要顯示的Top和Bottom,這點不錯,但是初始化比gitk慢多了
QGit的圖形顯示較gitk更爲直觀
2) gitview
Did not find on Ubutnu 10.04LTS and Debian 6
3) tig
git文本模式的接口,較git直觀
4)smartgit
windows下的git GUI工具
http://tech.ddvip.com/2010-12/1292917534164855.html
參考:
Guide to understanding gitk ?
http://stackoverflow.com/questions/1570535/guide-to-understanding-gitk
git-rev-list(1) Manual Page
http://www.kernel.org/pub/software/scm/git-core/docs/git-rev-list.html
Use gitk to understand git
http://lostechies.com/joshuaflanagan/2010/09/03/use-gitk-to-understand-git/
Use gitk to understand git – merge and rebase
http://lostechies.com/joshuaflanagan/2010/09/03/use-gitk-to-understand-git-merge-and-rebase/