Answers for "git remove untracked branches"

0

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 $_}
Posted by: Guest on February-26-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language