Last active
June 20, 2022 23:37
-
-
Save ViacheslavK/4613a0a4a04df8b43d3b552abb823573 to your computer and use it in GitHub Desktop.
bash script for updating all repositories, located in folder. Save as `your_name.sh` and add execution rights (`chmod +x your_name.sh`)
This file contains 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
#!/bin/sh | |
for D in *; do | |
if [ -d "${D}" ]; then | |
cd "${D}" | |
if [ -d ".git" ]; then | |
git pull -v | |
fi | |
cd .. | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Possible improvement if use next for understanding branch state