Monday, May 24, 2021

Git PowerShell command to delete all local branch.

Git PowerShell command to delete all local branch.

git checkout master; git branch -D @(git branch | select-string -NotMatch "master" | Foreach {$_.Line.Trim()})


Reference - com/JSeed/5d022570ea52ee09a8f43913214496f1

No comments:

Post a Comment