Skip to content

Instantly share code, notes, and snippets.

@ncornette
Created February 19, 2015 09:37
Show Gist options
  • Save ncornette/77fdf6ee4777965813d4 to your computer and use it in GitHub Desktop.
Save ncornette/77fdf6ee4777965813d4 to your computer and use it in GitHub Desktop.

Revisions

  1. ncornette created this gist Feb 19, 2015.
    5 changes: 5 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #1 create fresh git clone

    #2 track all remote branches

    for b in `git branch -r | sed "s/ origin\///g"`; do git branch $b -t origin/$b; done