From 3fa05d81317561fd3136db5d1da6d7aad652c86f Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Wed, 12 Dec 2012 08:58:10 -0800 Subject: [PATCH] Added script for tracking all remote branches Signed-off-by: Leonardo de Moura --- scripts/trackall.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 scripts/trackall.sh diff --git a/scripts/trackall.sh b/scripts/trackall.sh new file mode 100644 index 000000000..d8351af24 --- /dev/null +++ b/scripts/trackall.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Script for "cloning" (and tracking) all branches at codeplex. +# On Windows, this script must be executed in the "git Bash" console. +for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do + git branch --track ${branch##*/} $branch +done +git fetch --all +git pull --all