summaryrefslogtreecommitdiff
path: root/update_branches
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2010-03-01 13:28:22 +0200
committerTzafrir Cohen <tzafrir@cohens.org.il>2010-03-01 13:28:22 +0200
commitf88ecffcc80f913d8cf59513868d8dc92d8505b6 (patch)
treee4ecef29a4c88f4d4d9ca5b3bd297cd1774da7b8 /update_branches
parent2a95d8e7e8bc55d5ed28ed220bf2e6b2be844ee9 (diff)
update_branches: local branches for remote ones
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