Skip to content

Instantly share code, notes, and snippets.

@Alex009
Created April 18, 2024 06:44
Show Gist options
  • Save Alex009/1503049dfbec9182cd38e2ab2bc721d0 to your computer and use it in GitHub Desktop.
Save Alex009/1503049dfbec9182cd38e2ab2bc721d0 to your computer and use it in GitHub Desktop.
Checkout all git branches
git branch -a | sed -n "/\/HEAD /d; /\/master$/d; /remotes/p;" | xargs -L1 git checkout -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment