Skip to content

Instantly share code, notes, and snippets.

@julkwel
Last active October 30, 2018 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julkwel/920dff386fdeef754b8406fcfacf7c3d to your computer and use it in GitHub Desktop.
Save julkwel/920dff386fdeef754b8406fcfacf7c3d to your computer and use it in GitHub Desktop.
Ewample script pull git
#!/bin/bash
#pull jul script
echo "** start **"
repos=(
#Your repository need to pull here
"repos1"
"repos2"
"repos3"
)
echo "update ${#repos[@]} "
for repo in "${repos[@]}"
do
cd "${repo}"
git pull
done
echo "** finished **"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment