Last active
August 28, 2023 18:24
-
-
Save marhensa/7a1587252665fc9368ea086ac5fed058 to your computer and use it in GitHub Desktop.
Bash Linux - git pull for all directories (update all repository folders)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls -R -d */.git | cut -d'.' -f1 | xargs -P10 -I{} git -C {} pull | |
# make sure to run it on the folder that have all those repositories that needs to be updated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to make an alias, so it could be run in a single simple command:
gitpullall