summaryrefslogtreecommitdiff
path: root/update_branches
diff options
context:
space:
mode:
Diffstat (limited to 'update_branches')
-rwxr-xr-xupdate_branches6
1 files changed, 6 insertions, 0 deletions
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