Skip to content

Instantly share code, notes, and snippets.

@pollend
Last active February 6, 2021 22:18
Show Gist options
  • Save pollend/61b2db2c87ac22b3e58a80ef0539ca19 to your computer and use it in GitHub Desktop.
Save pollend/61b2db2c87ac22b3e58a80ef0539ca19 to your computer and use it in GitHub Desktop.
#!/bin/bash
org=""
tg=""
for i in */; do
tg="$(git -C "$(pwd)/$i" status)";
if [[ $tg == *"modified"* ]]; then
echo "${i}";
fi;
done;
for i in */; do git -C "$(pwd)/$i" pull origin develop; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment