From 7161bf05308cd7832d8a2d65c1b283f62bf68189 Mon Sep 17 00:00:00 2001 From: suchAdemon Date: Tue, 17 Apr 2018 14:29:46 +0200 Subject: [PATCH] git_update_all_branches.sh: added --rebase to git pull --- git_update_all_branches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_update_all_branches.sh b/git_update_all_branches.sh index a6156c4..fe11eb2 100755 --- a/git_update_all_branches.sh +++ b/git_update_all_branches.sh @@ -5,7 +5,7 @@ echo "============= GIT UPDATE BRANCHES =============" for f in $(git br -a | grep remotes | grep -v "remotes/origin/HEAD" | awk '{print $1}' | cut -f3 -d\/) do echo "Updateing: ${f}" - git checkout "${f}" --quiet && git pull origin "${f}" --quiet + git checkout "${f}" --quiet && git pull --rebase origin "${f}" --quiet done echo "==========================================="