Coderwall
Ruby
Python
JavaScript
Front-End
Tools
iOS
More
Tips
Ruby
Python
JavaScript
Front-End
Tools
iOS
PHP
Android
.NET
Java
Jobs
Jobs
Sign In or Up
Joined November 2018
·
RageMarkus
RageMarkus
Devops at Link Group Europe
·
Leeds UK
·
·
0 Protips
1 Comments
Posted to
Remove all your local git branches but keep master
over 1 year ago
git branch | select-string -notmatch master | foreach {git branch -d ("$_").Trim() --force}
Achievements
1 Karma
0 Total ProTip Views
Interests & Skills
Powershell
git branch | select-string -notmatch master | foreach {git branch -d ("$_").Trim() --force}