IntelliJ在提交后显示GIT差异 [英] IntelliJ show GIT differences after commit
问题描述
首先,我创建一个新分支.然后,在类中添加新的代码行. Intellij在左侧以不同的颜色显示,我添加了新行.然后,我提交我的代码.此后,IntelliJ不再显示我在左侧添加了新行.我不要那个.
First, I create new branch. Then, I add a new code line in my class. Intellij shows on the left with a different color that I added a new line. Then, I commit my code. After this, IntelliJ no longer shows that I added new line on the left. I don't want that.
我如何配置IntelliJ,以便显示与以前的另一个分支或提交相比所做的所有更改?
How can I configure IntelliJ so it would show all the changes that have been done, compared to, for example, another branch or commit from before?
推荐答案
不幸的是,在IDEA中,现在无法在编辑器中针对某些较早的提交使用diff标记. 这是JetBrain的问题跟踪器中的票证:
Unfortunately having diff markers in the editor with respect to some earlier commit is not possible right now in IDEA. Here's the ticket in JetBrain's issue tracker:
https://youtrack.jetbrains.com/issue/IDEA-24398
请投票并对其发表评论.
Please vote for it and comment on it.
这篇关于IntelliJ在提交后显示GIT差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!