Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does my Intellij Git plugin not commit files once I click commit?

Using IntelliJ 11.1.5, I was having trouble with committing my active changelist to my local Git repository. When I would try to commit, I would observe that though the dialog would come up, clicking commit did nothing, and I would need to play with various configurations of unnecessary subchangelists, committing one file at a time, or unchecking the "optimize imports" and "code analysis" in order to get it to work.

Please note, that this was a somewhat random occurrence, and at other times this wouldn't be an issue. In fact, when I switched to Git GUI or Git Bash the commits worked without incident.

So how do I fix things to be able to use the Git plugin?

like image 558
noisebelt Avatar asked Dec 21 '12 15:12

noisebelt


1 Answers

I was experiencing problem with non-modal interface in version Ultimate 2020.3 and it turned-out I had to click on Commit button several time in order to work.

BTW, I've also did what @noisebelt suggested -> Invalidate Cache and Restart before switching to non-modal interface. To switch to that interface:

  1. Go to File > Settings > Version Control > Commit (For Mac: IntelliJ IDEA > Preferences > Version Control > Commit)
  2. Untick Use non-modal commit interface checkbox.
  3. Good luck! :)

UPDATE: You might want to un-check some of checkboxes in Settings>Version Control>Commit under "Before Commit" section such as Reformat Code, Rearrange Code, etc. and by doing that diagnose what might be causing this issue with committing.

like image 54
NikolaS Avatar answered Nov 15 '22 21:11

NikolaS