Skip to content

Instantly share code, notes, and snippets.

View harshbaid's full-sized avatar

Harsh Baid harshbaid

View GitHub Profile
@harshbaid
harshbaid / prune.git.branches.ps1
Created July 16, 2025 18:33
Clean up outdated branches in local
git fetch -p; git branch -vv | Where-Object { $_ -match ": gone]" } | ForEach-Object { git branch -D ($_.Trim() -split '\s+')[0] }