如何在 Visual Studio Code 中查看 Git 历史记录?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37899765/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I view the Git history in Visual Studio Code?
提问by rlesias
I can execute various Git commands from Visual Studio Code, however I couldn't find a way to visualize the history.
我可以从 Visual Studio Code 执行各种 Git 命令,但是我找不到可视化历史的方法。
采纳答案by ThormaWeb.com
I recommend you this repository, https://github.com/DonJayamanne/gitHistoryVSCode
我向你推荐这个存储库,https://github.com/DonJayamanne/gitHistoryVSCode
Git History
Git 历史
It does exactly what you need and has these features:
它完全满足您的需求,并具有以下功能:
- View the details of a commit, such as author name, email, date, committer name, email, date and comments.
- View a previous copy of the file or compare it against the local workspace version or a previous version.
- View the changes to the active line in the editor (Git Blame).
- Configure the information displayed in the list
- Use keyboard shortcuts to view history of a file or line
- View the Git log (along with details of a commit, such as author name, email, comments and file changes).
- 查看提交的详细信息,例如作者姓名、电子邮件、日期、提交者姓名、电子邮件、日期和评论。
- 查看文件的先前副本或将其与本地工作区版本或先前版本进行比较。
- 在编辑器 (Git Blame) 中查看对活动行的更改。
- 配置列表中显示的信息
- 使用键盘快捷键查看文件或行的历史记录
- 查看 Git 日志(以及提交的详细信息,例如作者姓名、电子邮件、评论和文件更改)。
回答by Joseph Sheedy
回答by prosti
回答by VonC
You won't need a plugin to see commit history with Visual Studio Code 1.42or more.
你不需要插件来查看Visual Studio Code 1.42或更高版本的提交历史记录。
Timeline view
In this milestone, we've made progress on the new Timeline view, and have an early preview to share.
This is a unified view for visualizing time-series events (e.g. commits, saves, test runs, etc.) for a resource (file, folder, etc.).To enable the Timeline view, you must be using the Insiders Editionand then add the following setting:
"timeline.showView": true
时间线视图
在这个里程碑中,我们在新的时间轴视图方面取得了进展,并有一个早期的预览可以分享。
这是用于可视化资源(文件、文件夹等)的时间序列事件(例如提交、保存、测试运行等)的统一视图。要启用 Timeline 视图,您必须使用Insiders Edition,然后添加以下设置:
"timeline.showView": true
回答by Tobias Otto
回答by Joe Phillips
回答by KRISHNA
If you need to know the Commit history only, So don't use much Meshed up and bulky plugins,
如果你只需要知道 Commit 历史,那么不要使用太多的 Meshed 和笨重的插件,
I will recommend you a Basic simple plugin like "Git Commits"
我会向你推荐一个基本的简单插件,比如“Git Commits”
I use it too :
我也用它:
https://marketplace.visualstudio.com/items?itemName=exelord.git-commits
https://marketplace.visualstudio.com/items?itemName=exelord.git-commits
Enjoy
享受