diff options
author | Tzafrir Cohen <tzafrir@cohens.org.il> | 2010-03-01 13:28:22 +0200 |
---|---|---|
committer | Tzafrir Cohen <tzafrir@cohens.org.il> | 2010-03-01 13:28:22 +0200 |
commit | f88ecffcc80f913d8cf59513868d8dc92d8505b6 (patch) | |
tree | e4ecef29a4c88f4d4d9ca5b3bd297cd1774da7b8 /update_branches | |
parent | 2a95d8e7e8bc55d5ed28ed220bf2e6b2be844ee9 (diff) |
update_branches: local branches for remote ones
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 |