danielestevez
7/23/2012 - 7:48 AM

Create brnaches and push to remote for all GIT submodules

Create brnaches and push to remote for all GIT submodules

function newbranch() {
    git submodule foreach git checkout ${1}
    git submodule foreach git pull origin ${1}
    git submodule foreach git co -b ${2}
    git submodule foreach git push origin ${2}
    git status
}


# newbranch master newbranchname