Created
April 18, 2015 08:57
-
-
Save osvein/5ef2b3168f3e06b93820 to your computer and use it in GitHub Desktop.
A collection of scripts for handling multiple Git repositories with ease
This file contains hidden or 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
#!/usr/bin/env bash | |
# Perform a command for each repository | |
# Standard input is the list of repositories, seperated by newline | |
# Argument 1 is the command to perform for each repository | |
while read repo; do | |
echo $repo | |
cd $repo | |
eval $1 | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment