Created
June 8, 2016 00:22
-
-
Save bhrott/0e7894cf06e3a6745dd052aa435b696d to your computer and use it in GitHub Desktop.
Pull Repositories in Folder
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 repo in folder1 folder2 folder3; do | |
echo UPDATE REPO ${repo} | |
(cd "${repo}" && git checkout master && git pull origin master) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment