Skip to content

Instantly share code, notes, and snippets.

@sbellver
Created December 10, 2014 12:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Git Pull all the repos in list
# It's part from my bash_profile
function gitpull {
REPOS=( /route/repo /route/repo2 /route/repo3 )
for R in "${REPOS[@]}"; do
echo "Actualizando repo $R."
pushd "$R" >/dev/null && {
git pull
popd >/dev/null
}
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment