Last Updated: May 17, 2022
· tamtamchik

Fetch all branches & tags from remote git repository

Sometimes we need to have a FULL copy of remote git repository and this small script can really help.

for branch in `git branch -r | grep -v HEAD | grep -v master`; do
    echo ${branch##*/} $branch
git fetch --all
git pull -v

Thanks for the updates!
You can always find latest version on: