Skip to content

Instantly share code, notes, and snippets.

@roberto-butti
Created February 6, 2022 14:14
Show Gist options
  • Save roberto-butti/77c5a7426f2bf607273958a92343a580 to your computer and use it in GitHub Desktop.
Save roberto-butti/77c5a7426f2bf607273958a92343a580 to your computer and use it in GitHub Desktop.
Walk through the branches
for i in $(git branch --list "0*" --format="%(refname:short)"); do
git checkout $i
echo "Branch : ${i}"
echo "Press _enter_ to checkout the next branch"
read
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment