Skip to content

Instantly share code, notes, and snippets.

@xqm32
Last active November 14, 2023 09:14
Show Gist options
  • Select an option

  • Save xqm32/b7802c4c0dba851d70dd40b8417b4502 to your computer and use it in GitHub Desktop.

Select an option

Save xqm32/b7802c4c0dba851d70dd40b8417b4502 to your computer and use it in GitHub Desktop.
for dir in */; do
if [ ! -d "${dir}.git" ]; then
continue
fi
pushd ${dir} > /dev/null
echo ${dir}$(git branch --show-current)
git pull
popd > /dev/null
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment