Skip to content

Instantly share code, notes, and snippets.

@fapestniegd
Created December 11, 2012 21:51
Show Gist options
  • Save fapestniegd/4262551 to your computer and use it in GitHub Desktop.
Save fapestniegd/4262551 to your computer and use it in GitHub Desktop.
VERSIONS=$(git branch -r | grep 'aufs2.1-' | sed -e 's/.*origin\///')
for v in $(echo "${VERSIONS}"); do
git checkout ${v} || git checkout -b ${v} origin/${v}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment