简体   繁体   中英

IntelliJ - cannot commit file

In IntelliJ, I cannot commit file (right click -> Subversion -> Commit File), the option is grayed out; however - it is possible to Update File. IntelliJ-提交

As a workaround, I am able to commit the file through TortoiseSVN: SVN 提交 Could you help me to find out why is this happening?

I tried to configure project Settings -> Version Control: 版本控制设置

And also, according to: Intellij Annotate Option Grayed Out I tried to uncheck 'Use non-modal commit interface' but it didn't work.

It's not the best, but I found a solution to this problem, if I find anything else, I will definitely update.

  1. From 'Version control -> Directory Mappings' I had to remove the Git repository, and leave only Subversion, then 'Commit File' works, but I can't in turn do anything (eg change branch) on the Git project (which is logical).
  2. Then I cleared VCS log caches and indexes.
  3. After that I re-added the Git project to 'Dependency Mappings'. The problem is, I can't clear VCS log caches and indexes now, because 'Commit File' will stop working again (so again I'd have to remove Git, clear VCS, and add Git after that).

I'm guessing IntelliJ doesn't know which repository this 'Commit File' is for, so this option is greyed out. However, all options are now available.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM