Skip to content

Instantly share code, notes, and snippets.

@jpoley
Created June 5, 2020 18:33
Show Gist options
  • Select an option

  • Save jpoley/d4aec3b90f6bf69161af74fad1af34d0 to your computer and use it in GitHub Desktop.

Select an option

Save jpoley/d4aec3b90f6bf69161af74fad1af34d0 to your computer and use it in GitHub Desktop.

Revisions

  1. jpoley created this gist Jun 5, 2020.
    1 change: 1 addition & 0 deletions git-get-all.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done