Search code examples
gitintellij-ideaide

There is a divergence between build-in Intellij IDEA 'Commit' tab and git bash


I'm running Intellij IDEA Ultimate on Windows 11 Pro. In my project when I updated the main branch, I see changes in the 'Commit' tab of the IDE, and nothing appears at the git bash when given a command 'git status'. And vice versa, if I rollback the changes in the 'Commit' tab, I see the changes in git bash running 'git status'.

I've tried to reinstall Intellij IDEA, applied updates and also tried to reinstall git bash on my machine. I've tried command 'git clean -fdx', but the issue apparently relates to Intellij IDEA. Yet nothing worked. Please help


Solution

  • The solution of the problem is to make a git clone of the project to a new folder and open the fresh version in Intellij IDEA. Apparently, the new project will not have the history of commits within IDE.