We are using an Eclipse xText based Editor to generate some code in our projects but for some reason eclipse is generating .gitignore files for generated code by default. I understand the idea behind it that generated should not be part of version control but instead generated locally but in our case the generator is not integerated into the code-framework (c#).
To make a long story short. To turn that behaviour of:
Window>Preferences>Team>Git>Project>Uncheck 'Automatically ignore derived resources by adding them to .gitignore'