如何在Windows Git Gui中执行“git log”?

10

我刚刚使用Git Gui从GitHub克隆了一个本地repo,然后检出了一个特定的分支。现在我想查看相当于执行git log -50的操作,但似乎找不到任何菜单选项或主屏幕上的信息:

enter image description here

如何查看最近50个提交的历史/数据?

2个回答

8
那个GUI不仅适用于Windows,而且是随Git一起提供的标准git-gui
无论如何,git-gui本身并不显示日志信息。它用于创建新提交、管理分支等。配套程序gitk可视化提交图表并包含类似于git log的信息。
您可以从菜单中启动gitk,例如通过Repository → Visualize master's History(或者如果您喜欢,Visualize All Branch History)。或者,您也可以从命令行启动它。我通常想要看到所有分支,所以我使用gitk --all

2
以下是不同的选项(前三个来自命令行):
  • gitk

  • or git-gui, then Repository > Visualize master's History, as mentioned by Chris

  • Install Git-webui from https://github.com/alberthier/git-webui and create a script in the PATH to call it quickly. On Windows I created gitweb.bat containing:

    python "D:/Documents/software/____PORTABLE/git-webui-master/release/libexec/git-core/git-webui"
    

    enter image description here

  • Use a tool like SourceTree. Note: you have to create an Atlassian or Bitbucket account first even if you want to just use it locally without any repo online (I find this annoying).

    enter image description here


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接