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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -