From ff50492ce020ddd4aea0448695b3485cd31494f3 Mon Sep 17 00:00:00 2001 From: David Leal Date: Wed, 9 Jul 2025 09:43:56 -0400 Subject: [PATCH] Update package.json and git-basics.md --- docs/git-basics.md | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/git-basics.md b/docs/git-basics.md index 80b6f50..33d36b1 100644 --- a/docs/git-basics.md +++ b/docs/git-basics.md @@ -11,6 +11,7 @@ A concise cheat sheet with essential commands and common workflows for daily Git git config --global user.name "Your Name" git config --global user.email "you@example.com" git config --global core.editor "code --wait" # Set VSCode as editor (optional) +git config --global fetch.prune true # Automatically delete local branches that have been merged into the branch pulled ``` --- diff --git a/package.json b/package.json index 4262661..0961d45 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,8 @@ "test": "npx ts-node --project tsconfig.test.json wrappers/main-wrapper.ts", "debug": "npx ts-node --project tsconfig.test.json wrappers/main-wrapper.ts --debug", "doc:ts:install": "npm install --save-dev typedoc", - "doc:ts:run": "npx typedoc src/logger.ts --out docs/typedoc --readme none --tsconfig tsconfig.json --theme default" + "doc:ts:run": "npx typedoc src/logger.ts --out docs/typedoc --readme none --tsconfig tsconfig.json --theme default", + "cleanup-branches": "git branch --merged main | grep -v 'main$' | grep -v '^\\*' | xargs -n 1 git branch -d" }, "keywords": [ "office-scripts",