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...")
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 $_ }