From 3426acbb77d878e2b9a2f6b1c4c8ba4c6f053b7a Mon Sep 17 00:00:00 2001 From: Matrix Music Bot Dev Date: Thu, 2 Jul 2026 01:08:45 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E7=BB=93=E6=9E=84=EF=BC=88.gitignore=20+=20data/=20?= =?UTF-8?q?=E5=8D=A0=E4=BD=8D=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 排除 /target、/data、secret.bin、.env 等敏感与构建产物 - 保留 data/.gitkeep 占位以便运行时生成 bot.db / crypto.db --- .gitignore | 33 +++++++++++++++++++++++++++++++++ data/.gitkeep | 1 + 2 files changed, 34 insertions(+) create mode 100644 .gitignore create mode 100644 data/.gitkeep diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..108a39a --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +# Rust build artifacts +/target/ +**/*.rs.bk +Cargo.lock.bak + +# Runtime data (bot 运行时生成) +/data/ +!data/.gitkeep + +# Secrets +*.pem +*.key +*.secret +secret.bin + +# Editor +.vscode/ +.idea/ +*.swp +*.swo +.DS_Store +Thumbs.db + +# Environment +.env +.env.local + +# Logs +*.log +logs/ + +# Cache +.cache/ \ No newline at end of file diff --git a/data/.gitkeep b/data/.gitkeep new file mode 100644 index 0000000..256249c --- /dev/null +++ b/data/.gitkeep @@ -0,0 +1 @@ +# placeholder so the directory is tracked even though contents are ignored \ No newline at end of file