Skip to content

Instantly share code, notes, and snippets.

@Rust1667
Created November 7, 2022 22:54
Show Gist options
  • Save Rust1667/cdf3215fb3e36b5473091069ef1497c4 to your computer and use it in GitHub Desktop.
Save Rust1667/cdf3215fb3e36b5473091069ef1497c4 to your computer and use it in GitHub Desktop.
Script for Linux. Updates all the git repositories in a folder.
#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