From d9941285c01d764f9713800a41f6a02ab5987730 Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Fri, 12 May 2017 19:05:42 +0300 Subject: [PATCH] Create mr-update.sh --- mr-update.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 mr-update.sh 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