我可以从Visual Studio Code中执行各种Git命令,但是我找不到一种方法来可视化历史。
当前回答
Git Graph似乎是一个不错的扩展。安装完成后,您可以从底部状态栏打开图形视图。
其他回答
当您打开文件或欢迎页面时,您将在右上角找到要单击的正确图标。
你可以添加一个键盘快捷键:
在Visual Studio Code 1.44或更高版本中,你不需要一个插件来查看提交历史。
Timeline view This is a unified view for visualizing time-series events (for example, Git commits, file saves, test runs, etc.) for a file. The Timeline view automatically updates showing the timeline for the currently active editor, by default. You can control this default behavior by toggling the eye icon in the view toolbar. Also, similar to other views, the Timeline view supports find or filter as you type. The Timeline view is collapsed by default at the bottom of the File Explorer. Selecting the Timeline sash will expand the Timeline view. [...] Here is the Timeline view in action:
我向您推荐这个存储库,https://github.com/DonJayamanne/gitHistoryVSCode
转到历史记录
它完全满足了您的需要,并具有以下功能:
查看提交的详细信息,如作者名称、电子邮件、日期、提交者名称、电子邮件、日期和评论。 查看该文件的先前副本或将其与本地副本进行比较 工作区版本或以前的版本。 在编辑器中查看对活动行的更改(Git Blame)。 配置列表中显示的信息 使用键盘快捷键查看文件或行的历史记录 查看Git日志(以及提交的详细信息,如作者姓名、电子邮件、评论和文件更改)。
我建议使用Git Graph扩展。
GitLens有一个很好的Git历史浏览器。从扩展市场安装GitLens,然后从命令面板运行“Show GitLens Explorer”。
推荐文章
- 打开同一目录两次
- 如何从终端/命令行调用VS代码编辑器
- 为什么我需要显式地推一个新分支?
- 如何撤消最后的git添加?
- Rubymine:如何让Git忽略Rubymine创建的.idea文件
- Gitignore二进制文件,没有扩展名
- Git隐藏错误:Git隐藏弹出并最终与合并冲突
- 了解Git和GitHub的基础知识
- 没有。Git目录的Git克隆
- Git与Mercurial仓库的互操作性
- 忽略git中修改(但未提交)的文件?
- “git restore”命令是什么?“git restore”和“git reset”之间有什么区别?
- Git合并与强制覆盖
- 如何在Visual Studio代码中重置设置?
- Git拉另一个分支