git - How to merge all branches with the master branch? -
git - How to merge all branches with the master branch? -
i have few branches locally , want update them. how merge stuff master branch other branches?
#!/bin/bash git checkout master git pull branches=() eval "$(git for-each-ref --shell --format='branches+=(%(refname))' refs/heads/)" branch in "${branches[@]}"; branch=`expr substr $branch 12 100` git checkout $branch git merge master done git checkout master
git
Comments
Post a Comment