Created
November 7, 2022 22:54
-
-
Save Rust1667/cdf3215fb3e36b5473091069ef1497c4 to your computer and use it in GitHub Desktop.
Script for Linux. Updates all the git repositories in a folder.
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
#Get the directory right | |
cd ~/repos-folder | |
pwd | |
ls | |
echo | |
#Git pull everything | |
find . -maxdepth 1 -type d -exec sh -c '(cd {} && pwd && git pull && echo ...)' ';' | |
# WAIT BEFORE CLOSING | |
echo Enter anything before closing | |
read anything |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment