Skip to content

Instantly share code, notes, and snippets.

@whitekid
Last active August 29, 2015 13:56
Show Gist options
  • Save whitekid/291da0c5cfec381415fe to your computer and use it in GitHub Desktop.
Save whitekid/291da0c5cfec381415fe to your computer and use it in GitHub Desktop.
git repo 아래에 또 다른 repo가 많을 때, 한번에 git 명령 내리기..
#!/bin/bash
# Usage: gs.sh git checkout master
cwd=`pwd`
for repo in `find . -name .git`; do
repo=${repo/.git}
cd $cwd/$repo
echo "==== $repo ===="
"$@"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment