我刚刚使用Git Gui从GitHub克隆了一个本地repo,然后检出了一个特定的分支。现在我想查看相当于执行git log -50
的操作,但似乎找不到任何菜单选项或主屏幕上的信息:
如何查看最近50个提交的历史/数据?
git-gui
。git-gui
本身并不显示日志信息。它用于创建新提交、管理分支等。配套程序gitk
可视化提交图表并包含类似于git log
的信息。gitk
,例如通过Repository → Visualize master's History(或者如果您喜欢,Visualize All Branch History)。或者,您也可以从命令行启动它。我通常想要看到所有分支,所以我使用gitk --all
。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"
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).