From c1ff81e34116f6b397cce3898a4b01171aa0feba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=BB=BA=E8=B6=85?= Date: Tue, 17 Mar 2026 16:10:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitattributes | 4 ++++ .gitignore | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..7b3266de --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +*.dfg filter=lfs diff=lfs merge=lfs -text +*.xyz filter=lfs diff=lfs merge=lfs -text +*.grd filter=lfs diff=lfs merge=lfs -text +*.7z filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..c47a154f --- /dev/null +++ b/.gitignore @@ -0,0 +1,57 @@ +################################################################################ +# Windows C#/C++ 项目优化版 (保留 Bin 目录,排除中间件) +################################################################################ + +# --- 1. 核心构建中间目录 (完全忽略) --- +**/[Oo]bj/ +**/[Oo]bj-*/ + +# --- 2. Visual Studio 用户特定文件 --- +.vs/ +.vscode/ +*.suo +*.user +*.userosscache +*.sln.docstates +*.DotSettings.user + +# --- 3. 精准忽略:Bin 目录下的“建筑废料” --- +# 这些是编译/链接时的临时产物,不应提交 +*.obj +*.pch +*.ilk +*.exp +*.iobj +*.ipdb +*.ipch +*.idb +*.res +*.tlb +*.tlog +*.lastbuildstate +*.FileListAbsolute.txt +*.CopyComplete +*.log +*.cache + +# --- 4. 调试符号说明 --- +# 如果你们需要保留调试符号(用于崩溃分析),请注释掉下面这一行 +# 如果不需要 PDB,则保留这一行 +*.pdb + +# --- 5. 库与包管理 --- +**/packages/ +!**/packages/repositories.config +*.nupkg +*.snupkg + +# --- 6. AI 插件与工具配置 --- +.comate +.lingma +*.DotSettings + +# --- 7. 操作系统文件与其它 --- +.DS_Store +Thumbs.db +desktop.ini +**/build.force \ No newline at end of file