From 2b072c2b2c1d13563874cde96c2c642ef80bcc44 Mon Sep 17 00:00:00 2001 From: liumin Date: Sat, 11 Apr 2026 09:47:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20gitgnore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 .gitignore 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