summaryrefslogtreecommitdiff
path: root/update_branches
blob: e3a73994f59f378d40800b5186d21ebe1f9c89c4 (plain)
1
2
3
4
5
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