Git worktree

From Logic Wiki
Revision as of 08:51, 26 November 2026 by AliIybar (Talk | contribs) (Created page with "Category:LRQA Category:GIT git worktree list git worktree remove <PATH> == Delete all local branches except main == Powershell: <pre> git branch --format='%(refna...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


git worktree list
git worktree remove <PATH>

Delete all local branches except main

Powershell:

git branch --format='%(refname:short)' |
    Where-Object { $_ -ne 'main' } |
    ForEach-Object { git branch -D $_ }