Last active
August 29, 2015 13:56
-
-
Save whitekid/291da0c5cfec381415fe to your computer and use it in GitHub Desktop.
git repo 아래에 또 다른 repo가 많을 때, 한번에 git 명령 내리기..
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
#!/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