Skip to content

Instantly share code, notes, and snippets.

@planetoftheweb
Created June 16, 2021 18:40
Show Gist options
  • Save planetoftheweb/7555dd887d570f17967f065b8165904d to your computer and use it in GitHub Desktop.
Save planetoftheweb/7555dd887d570f17967f065b8165904d to your computer and use it in GitHub Desktop.
# !/bin/bash
arr=( "design" "feature" );
for ITEM in ${arr[@]}
do
git checkout $ITEM
git checkout main build/css/bootstrap.min.css
git checkout main build/css/bootstrap.min.css.map
git checkout main build/js/lib/bootstrap.bundle.min.js
git checkout main build/js/lib/bootstrap.bundle.min.js.map
git add --A
git commit -m "Updated to new version of Bootstrap"
# git push --set-upstream origin $ITEM
done
git checkout main
echo "Changes updated"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment