Skip to content

Instantly share code, notes, and snippets.

@osvein
Created April 18, 2015 08:57
Show Gist options
  • Save osvein/5ef2b3168f3e06b93820 to your computer and use it in GitHub Desktop.
Save osvein/5ef2b3168f3e06b93820 to your computer and use it in GitHub Desktop.
A collection of scripts for handling multiple Git repositories with ease
#!/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