Skip to content

Instantly share code, notes, and snippets.

@ardarda
Created March 4, 2024 06:52

Revisions

  1. ardarda created this gist Mar 4, 2024.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    git branch -r | grep -v '\->' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
    git fetch --all
    git pull --all