Skip to content

Instantly share code, notes, and snippets.

@planetoftheweb
Created June 16, 2021 19:15
Show Gist options
  • Save planetoftheweb/6248679970dec528122d5a25dcaa4cd0 to your computer and use it in GitHub Desktop.
Save planetoftheweb/6248679970dec528122d5a25dcaa4cd0 to your computer and use it in GitHub Desktop.
# !/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