diff --git a/internal/config/config.go b/internal/config/config.go index 60730a2..adb662a 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -73,13 +73,23 @@ var DefaultExcludePatterns = []string{ "node_modules", "paste-cache", "image-cache", + "backups", // auto .claude.json snapshots created by CC — redundant with claude.json.age + "cache", // CC update/summary cache + "chrome", // machine-specific Chrome native host + "daemon", // machine-specific pipe key + "session-env", // per-invocation env snapshots (14k+ files) + "temp", // temporary files // Files "history.jsonl", "stats-cache.json", + "mcp-needs-auth-cache.json", // ephemeral MCP auth state + "scheduled_tasks.lock", // runtime lock file + ".last-cleanup", // timestamp marker "*.log", "*.tmp", "*.cache", "*.local-backup-*", + "*.lock", ".git", } diff --git a/internal/git/git.go b/internal/git/git.go index d28f050..d53d5ff 100644 --- a/internal/git/git.go +++ b/internal/git/git.go @@ -69,7 +69,8 @@ func (g *Git) AddAll() error { // Commit creates a commit with the given message func (g *Git) Commit(message string) error { - _, err := g.run("commit", "-m", message) + // -c commit.gpgsign=false avoids failures on machines with GPG signing enabled globally + _, err := g.run("-c", "commit.gpgsign=false", "commit", "-m", message) return err }