Last active
October 28, 2018 13:24
-
-
Save anavarre/7171802 to your computer and use it in GitHub Desktop.
Update all your GitHub repos automatically. Could work for anything you wish (Bitbucket repos, Drupal repos...)
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/bash | |
REPO_PATH="/path/to/github/repos" | |
GITHUB="repo1 repo2 repo3" | |
echo "Updating GitHub repos..." | |
for REPO in ${GITHUB} ; do | |
cd ${REPO_PATH}/${REPO}/ | |
echo -e "\tPulling ${REPO} repo..." | |
git pull -q | |
done | |
echo "Finished updating all GitHub repos!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment