Created
June 16, 2021 19:15
-
-
Save planetoftheweb/6248679970dec528122d5a25dcaa4cd0 to your computer and use it in GitHub Desktop.
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
# !/bin/bash | |
for BRANCH in `git branch --list|sed 's/\*//g'`; | |
do | |
git checkout $BRANCH | |
mkdir -p ~/Desktop/backup/$BRANCH | |
cp -R build/* ~/Desktop/backup/$BRANCH/ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment