What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-11-05 05:40:21
git remove untracked branches
# this is powershell script for Windows execution git checkout master; git remote update origin --prune; git branch -vv | Select-String -Pattern ": gone]" | % { $_.toString().Trim().Split(" ")[0]} | % {git branch -d $_} Add solution