1
0
mirror of https://github.com/captn3m0/Scripts.git synced 2024-09-27 22:22:53 +00:00
scripts/git-pushall-branches

4 lines
165 B
Plaintext
Raw Normal View History

2019-06-13 09:30:48 +00:00
#!/bin/bash
for branch in $(git branch --all | grep '^\s*remotes' | egrep --invert-match '(:?HEAD|master)$'); do
git branch --track "${branch##*/}" "$branch"
done