Pull from multiple repositories
Published on
A tip for when you have a list of git repositories to update:
find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && git pull && cd .." \;
The \( ! -name . \)
pattern is used to skip executing the command inside the .
folder.
This work is licensed under a Creative Commons Attribuition-ShareAlike 4.0 International License .