Git commit window can't detect the VCS root despite the Git window working

Answered

I'm on RubyMine 2021.3 213.5744.254, MacOS Monterey 12.0.1

For some reason, I can't use the IDE's integrated Commit window with my current project, even though it's picking up on file changes just fine and highlighting the VCS differences for me as expected. It only shows me the `Create git repository...` link, but I'm not sure whether that will override or break any of my current changes I want to commit.

As you can see on the right-hand side, it's detecting new lines added in my file. You can also see in the `git` window that it's picking up on changes to the file there as well, meaning it knows the project belongs to a git repository already

Is it safe for me to set the directory as the new VCS root, overwriting the old one? Specifically regarding this dialogue I get if I try to set the git repository

 

1 comment
Comment actions Permalink

Hello Salevic

It seems that you have faced a known bug:
https://youtrack.jetbrains.com/issue/IDEA-284764

Please, go to Preferences | Version Control | Git and enable "Use non-modal commit interface" it should bring back "Commit" button. For now it can be found by hitting Ctrl/CMD+K and changes are listed in "Local changes" tab in Git toolwindow, but there is no need to specify VCS root since I believe you already have correct root detected under Preferences | Version Control

0

Please sign in to leave a comment.