Created
January 5, 2014 07:09
-
-
Save ma6174/8265337 to your computer and use it in GitHub Desktop.
Revisions
-
ma6174 created this gist
Jan 5, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ #!/bin/bash pulls="repo1 repo2 repo3" fetchs="repo4 repo5" branch="yourBranch" remote="yourRemoteGitName" for i in $pulls do echo ">>>>>>>>$i" cd $i git remote -v git checkout $branch git pull make cd .. done for i in $fetchs do echo ">>>>>>>>$i" cd $i git remote -v git checkout $branch git fetch $remote git merge $remote/$branch make git push cd .. done