After a lot of trial and error, this following list finally works on windows:
- IntelliJ settings->version control->git path to git executable should use the git.exe in c:\cygwin\bin
- IntelliJ settings->version control->git ssh executable 'native'.
- edit environment variables to your account on windows add to path: c:\cygwin\bin and c:\cygwin
- get rid of the .idea in the project directory if it's already there. (very important !)
- restart intellij, open the project directory again.
So now the local changes won't show the 'identical content' files, and the 'pull' and 'push' are all working from IntelliJ. And I don't have to go to cygwin to do the chore anymore.
If the project is being worked on both Linux and Windows, make sure the following setting is followed:
Make sure you have this setting (git config -l) in the cygwin window:
core.autocrlf=input
on linux in order for things to work properly you also have to have this setting as well:
core.autocrlf=input
this is how to set it:
git config --global core.autocrlf input
cheers!