Git图形用户工具介绍及比较

Git图形用户工具介绍及比较

分类: Linux系统编程内核编程   3800人阅读  评论(0)  收藏  举报
git 图形 工具 branch debian makefile

 

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/

 

Git图形用户工具介绍及比较_第1张图片

 

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/

你可能感兴趣的:(Linux系统编程内核编程)