Created
August 29, 2018 20:28
-
-
Save agvald/95febc01d3dd774ea743eef84e38bff7 to your computer and use it in GitHub Desktop.
Goes to a folder and creates 100 branches, pushed them and deletes them locally
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $1 | |
git checkout $2 | |
for i in {1..100} | |
do | |
export NAME=test_node_cache_$i | |
git checkout -b $NAME | |
git push origin $NAME | |
git checkout $2 | |
git branch -D $NAME | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment