diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1f28b7f --- /dev/null +++ b/.gitignore @@ -0,0 +1,72 @@ +# ############################## +# 1. 忽略所有编译目录(不管层级) +# ############################## +**/IAR/ +**/IAR_*/ +**/Debug/ +**/FlashDebug/ +**/Release/ +**/SES/ +**/Output/ +**/settings/ + +# ############################## +# 2. 忽略所有 IAR/SES 编译产物 +# ############################## +**/*.dep +**/*.out +**/*.bin +**/*.elf +**/*.map +**/*.lst +**/*.o +**/*.a +**/*.pbi +**/*.pbi.dep +**/*.xcl +**/*.r79 +**/*.sdf +**/*.sim +**/*.icf +**/*.wsdt +**/*.ninja_log + +# ############################## +# 3. 强制保留工程和源码文件(兜底!关键!) +# ############################## +!**/*.eww +!**/*.ewp +!**/*.ewd +!**/*.ewt +!**/*.custom_argvars +!**/*.c +!**/*.h + +# ############################## +# 4. 系统/编辑器垃圾文件 +# ############################## +.DS_Store +._* +Thumbs.db +Desktop.ini +.vscode/ +.idea/ +*.swp +*.swo +*.log +*.tmp + +# 忽略 IAR 工具生成的 browse/调试文件 +**/*.pbd +**/*.pbdb +**/*.sf.*.bat +**/*.sf.*.pbi +**/*.ninja_log + +# 忽略 IAR 工具链自动生成的调试/浏览文件 +**/*.ninja_log +**/*.pbd +**/*.pbd.browse +**/*.pbw +**/*.cspy.bat +**/*.cspy.ps1 \ No newline at end of file