I am working on IAR project, and my problem is which file in an IAR project can be ignored by git repository. All the project setting files and source files mixed together in git log is veeery boring and is not good for version control, could anyone give a good suggestion?
Thanks a million.
I would not recommend putting any compiled binaries under source control. Here is guidance directly from IAR: Technical Note "IAR Embedded Workbench files to be version controlled"
This is not a comprehensive list, but below are some extensions which I have come across, and placed inside .gitignore
(I have multiple IAR projects in the same repo, so I need to use the **
wildcard). Also, be sure to use the regular C/C++ ignore extensions, as well.
# IAR Settings
**/settings/*.crun
**/settings/*.dbgdt
**/settings/*.cspy
**/settings/*.cspy.*
**/settings/*.xcl
**/settings/*.dni
**/settings/*.wsdt
**/settings/*.wspos
# IAR Debug Exe
**/Exe/*.sim
# IAR Debug Obj
**/Obj/*.pbd
**/Obj/*.pbd.*
**/Obj/*.pbi
**/Obj/*.pbi.*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With