Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Typical gitignore files for IAR project

Tags:

git

iar

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.

like image 436
roMoon Avatar asked Jul 26 '16 03:07

roMoon


1 Answers

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.*  
like image 173
skobovm Avatar answered Nov 01 '22 07:11

skobovm