I'm not fan of this IDE specific "code", maybe you can do this at your global git configuration ?