Hi Robert,
I recommend to place projects outside of the workspace folder and instead have the IDE 'linking' to them. That way I can have projects in multiple repositories in different ways.
So:
- never ever put the .metadata folder into a repository (we have covered that :-) ).
- ignore everything which is derived or generated (generated make files, object files, ...)
- for Processor Expert or in general, see Version Control with Processor Expert Projects | MCU on Eclipse
- for MCUXpresso or 'normal' Eclipse projects:
a) you absolutely want the .project and .cproject in the repo
b) put all your sources, linker files and launch configs into the repo (of course). The launch configs needs to be shareable (Sharing Debug Configuration with Eclipse | MCU on Eclipse )
c) ignore the following
/.settings/
/debug/
For the last one: this means your build/output folder. It could be 'release' too, or whatever you use
Or look at the many .gitgnore I have on my main GitHub site, e.g. https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/MCUXpresso/i.MX%20RT1064_EVK/MIMXRT...
I hope this helps,
Erich