From f88ecffcc80f913d8cf59513868d8dc92d8505b6 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Mon, 1 Mar 2010 13:28:22 +0200 Subject: update_branches: local branches for remote ones --- update_branches | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 update_branches (limited to 'update_branches') diff --git a/update_branches b/update_branches new file mode 100755 index 0000000..e3a7399 --- /dev/null +++ b/update_branches @@ -0,0 +1,6 @@ +#!/bin/sh + +git branch -r | grep -v 'tags/' | sed -e 's/^ *\([^ ]*\)/svn_\1 \1/' \ + | while read local remote; do + git branch --track -f $local $remote + done -- cgit v1.2.3