Skip to content

Instantly share code, notes, and snippets.

@bhrott
Created June 8, 2016 00:22
Show Gist options
  • Save bhrott/0e7894cf06e3a6745dd052aa435b696d to your computer and use it in GitHub Desktop.
Save bhrott/0e7894cf06e3a6745dd052aa435b696d to your computer and use it in GitHub Desktop.
Pull Repositories in Folder
#!/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