diff --git a/mr-update.sh b/mr-update.sh new file mode 100644 index 00000000..08d0ca4e --- /dev/null +++ b/mr-update.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +BRANCHES=() + +BRANCHES+=(develop) +BRANCHES+=(master) + +if [ -n "$1" ]; then + BRANCHES+=($1) +fi + +for i in ${BRANCHES[@]}; do + mr git checkout ${i} + mr git pull +done