I'm mastering a development team where everyone worked with Eclipse and the same formatting settings.
Now some of the developers have reasons to switch to other IDEs, which format source code differently. So, when they now push to the git origin repo, git notices a a lot of cosmetic differences. Unfortunately, this is a big problem for some of the developers to get their head around.
Is there a way to get git - maybe by using hooks - to reformat everything on push or preferably commit, so the code in the repo is always formatted IDE independently?
I'm assuming we are not the first team in git-history to have that problem, so I hope there is a prefab solution or at least some best practices.