.gitignore for Eclipse CDT

Dec 02, 2019 1 Replies

Many free IDE from silicon vendors (such as ST and NXP) are Eclipse-CDT based.



Could you suggest a good .gitignore file? Mainly I don't know if it's better to ignore or add .settings folder, .project and .cproject files.



I think it's useful to add in CVS the options passed to compiler and linker, so another use could checkout and compile in the same way.


You'll definitely want .project and .cproject under source control. After you've finally got the project working, RubeMX will trash them when you regenerate. .settings I save as well.

Here's my typical .gitignore:

**/Debug/ **/Release/ **/html/ **/Backup/ **/*.bak **/.~lock.*

Hope that helps! Best Regards, Dave

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required