Last active
August 10, 2024 19:09
-
-
Save h0h0h0/1df8e31c5d1eb5585cbb68694db898c4 to your computer and use it in GitHub Desktop.
Sync upstream branches to origin
This file contains 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
git branch -a|grep remotes/upstream| while IFS="/" read p r b; do echo Syncing $r/$b to origin/$b; git push origin $r/$b:refs/heads/$b; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment