diff options
Diffstat (limited to 'update_branches')
-rwxr-xr-x | update_branches | 6 |
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 |