Git Branch

1 min read

Switch to previous branch

git switch -

Remove all local git branches but keep master

git branch | grep -v "master" | xargs git branch -D

Branches I recently modified

git branch --sort=-committerdate ## DESC
git branch --sort=committerdate ## ASC