Skip to content

Instantly share code, notes, and snippets.

@Marusyk
Created September 6, 2024 07:39
Show Gist options
  • Save Marusyk/c82d89ae9215f63160b3a4f4daaa92a8 to your computer and use it in GitHub Desktop.
Save Marusyk/c82d89ae9215f63160b3a4f4daaa92a8 to your computer and use it in GitHub Desktop.
git pull all services
#!/bin/bash
REPOSITORIES=(
cloud.analytics
cloud.applications
)
BRANCH=main
for REPOSITORY in ${REPOSITORIES[*]}
do
echo ========================================================
echo Updating repository: $REPOSITORY
echo ========================================================
cd $REPOSITORY
git checkout $BRANCH
git pull
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment