GIT – Pull several repositories

If you want to update multiple git repositories from their shared parent’s directory without cd’ing into each repo’s root directory use the following trick:

ls | xargs -I{} git -C {} pull

To do it in parallel:

ls | xargs -P10 -I{} git -C {} pull

Leave a Reply

Your email address will not be published. Required fields are marked *