chore(vault): rebuild git infra (gitignore/attributes/mailmap/hooks)
This commit is contained in:
+43
-3
@@ -1,12 +1,52 @@
|
||||
# 排除所有文件
|
||||
# Obsidian vault — whitelist strategy
|
||||
# Ignore everything at repo root, explicitly allow specific dirs/files.
|
||||
# Rationale: keep LLM Wiki layer + infra in git; track .obsidian configs too.
|
||||
|
||||
/*
|
||||
# 但保留这些目录和文件
|
||||
|
||||
# === Tracked content (LLM Wiki layer + infrastructure) ===
|
||||
!raw/
|
||||
!wiki/
|
||||
!Templates/
|
||||
!tools/
|
||||
!.githooks/
|
||||
!AGENTS.md
|
||||
!.gitignore
|
||||
# 保留目录内的所有内容
|
||||
!.gitattributes
|
||||
!.mailmap
|
||||
|
||||
# Allow everything inside tracked dirs
|
||||
!raw/**
|
||||
!wiki/**
|
||||
!Templates/**
|
||||
!tools/**
|
||||
!.githooks/**
|
||||
|
||||
# === Obsidian config — track but ignore high-churn state/caches ===
|
||||
!.obsidian/
|
||||
!.obsidian/**
|
||||
|
||||
# Device-specific workspace state (frequent churn, causes merge conflicts)
|
||||
.obsidian/workspace.json
|
||||
.obsidian/workspace.json.tmp
|
||||
.obsidian/workspace_*.json
|
||||
.obsidian/workspace_*_Conflict.json
|
||||
|
||||
# Large derived indexes
|
||||
.obsidian/copilot-index-*.json
|
||||
|
||||
# Plugin internals: binaries, deps, backups, high-churn caches
|
||||
.obsidian/plugins/*/node_modules/
|
||||
.obsidian/plugins/*/*.exe
|
||||
.obsidian/plugins/*/*.dll
|
||||
.obsidian/plugins/*/data.json.bak
|
||||
.obsidian/plugins/recent-files-obsidian/data.json
|
||||
|
||||
# === Python ===
|
||||
**/__pycache__/
|
||||
*.pyc
|
||||
|
||||
# === OS junk ===
|
||||
**/Thumbs.db
|
||||
**/.DS_Store
|
||||
**/desktop.ini
|
||||
|
||||
Reference in New Issue
Block a user