增加 gitgnore

This commit is contained in:
2026-04-11 09:47:12 +08:00
parent ffb7d139c4
commit 2b072c2b2c

72
.gitignore vendored Normal file
View File

@@ -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