IntelliJ show GIT differences after commit

前端 未结 3 482
甜味超标
甜味超标 2021-01-28 17:23

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 thi

相关标签:
3条回答
  • 2021-01-28 17:40

    Changes with different color as you found only show the changes which are not committed. After you commit changes, there won’t show the new lines on the left (also as you found) since there is no changes need to be committed.

    If you want to compare the changes which have already committed, you can select a commit and then show diff. Detail steps as below:

    Version Control -> Log -> select a commit -> show Diff.

    Then you will get the changes by compare with the previous commit.

    0 讨论(0)
  • 2021-01-28 17:47

    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.

    0 讨论(0)
  • 2021-01-28 17:56

    Install Git Scope Plugin: https://plugins.jetbrains.com/plugin/10083-git-scope

    Rubymine version 2020.2.3 on Mac

    1. Open Rubymine
    2. Open Preferences (keyboard shortcut: command + ,)
    3. Navigate to Plugins
    4. Search for Git Scope
    5. Install & Restart Rubymine
    6. Navigate to View > Tool Windows > Git Scope
    7. See documentation for further instruction: https://bitbucket.org/comodmw/git-scope/src/master/
    0 讨论(0)
提交回复
热议问题