Øystein Bedin
2019-06-26 dac3b367122d38cb1f860fc6f269d7a3f7727a7b
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# util function for pulling all repo branches
echo ""
echo "    PULLING ALL BRANCHES"
echo ""
echo "##################################################"
echo ""
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do
    git branch --track ${branch#remotes/origin/} $branch
done
echo ""
echo "##################################################"
echo ""