Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Goes to a folder and creates 100 branches, pushed them and deletes them locally
cd $1
git checkout $2
for i in {1..100}
export NAME=test_node_cache_$i
git checkout -b $NAME
git push origin $NAME
git checkout $2
git branch -D $NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.