1
0
mirror of https://github.com/captn3m0/Scripts.git synced 2024-09-28 16:22:49 +00:00
scripts/git-pushall-branches
2019-08-06 17:57:25 +05:30

4 lines
165 B
Bash
Executable File

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