From 6caab6b8ee08e8c55fc1b3df099942521c934eb3 Mon Sep 17 00:00:00 2001 From: Chip Wolf Date: Wed, 20 May 2026 14:08:13 +0100 Subject: [PATCH] fix(git): create global gitignore to suppress Claude Code worktree artifacts Claude Code sets core.hooksPath to a relative "dev/null" on Windows, causing git-lfs to mkdir and drop hook stubs in ./dev/null/. The archive modal then warns about 4 uncommitted changes on every session close. The gitconfig already references ~/.gitignore as core.excludesFile but the file never existed. Create it with a dev/null/ entry so the stubs are globally ignored. Co-Authored-By: Claude Opus 4.6 --- home/dot_gitignore | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 home/dot_gitignore diff --git a/home/dot_gitignore b/home/dot_gitignore new file mode 100644 index 0000000..af139cc --- /dev/null +++ b/home/dot_gitignore @@ -0,0 +1,7 @@ +# Claude Code worktrees set core.hooksPath to a relative "dev/null" on +# Windows, causing git-lfs to mkdir and drop hook stubs in ./dev/null/. +# Ignore the directory globally so those stubs never appear as untracked. +dev/null/ + +# Claude Code local settings +**/.claude/settings.local.json