http://editorconfig.org/ Supported by a lot of IDEs out of the box and even more with plugins. Might allow you to synchronize the git and editor settings.