Created
November 7, 2023 10:48
-
-
Save ardarda/5a7bd483db03d1ebe074482b73d8794b to your computer and use it in GitHub Desktop.
git make remote branch names as locals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for b in `git branch -r | grep -v -- '->'`; do git branch --track ${b##origin/} $b; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment